And the HTML page is relate...">

Can Sublime Text autocomplete CSS classes?

Suppose I have this in my index.html:

<div class="foo"></div>

      

And the HTML page is related to layout.css, is there a way that Sublime Text 2 can make an autocomplete suggestion for .foo when I type something like .f

or .fo

(...)?

I ask this because many times I cheat on the class name and it takes time. This function, if it exists, will help me a lot.

+3


source to share


2 answers


I had this problem. By default, sublime only completes words in the file that opens. I found that sublimeallautocomplete has a solution for this. But you have to open both css and html in sublime to make it look like words on files opened in sublime.you better look in sublimetext forums as well.



+2


source


Just installing All Autocomplete did not solve the problem for me inside .css files (it only worked in .html files). For those having similar issues, this is the solution: https://github.com/SublimeTextIssues/Core/issues/283



0


source







All Articles