Css classes autocomplete


#1

Hi,

can atom autocomplete css classes in html?

thanks for help


#2

Yes.

if you enable Include Completions From All Buffers in the Autocomplete Plus package:


#3

how can i do this?


#4

@nor_bu
accidentally submitted my answer right in the middle of writing, see above :slight_smile:


#5

thanks for help :smile:


#6

That said, you need to have the css file open in one tab for the autocompletion to work. Not sure if it is possible to let autocomplete-plus search the whole project (including non-open files)


#7

Thanks for the answer this helped me out. It would be nice to be able to register files to pull for this kind of stuff.


#8

It would be VERY nice to be able to register files for the autocomplete.


#9

As an example of how this could be done … Visual Studio created the following concepts to generate smart autocomplete information for html. js. css, less and sass files:

  1. Referenced Files: files linked to the current file are observed to provide code hints.

    @import "../libs/bootstrap-sass/assets/stylesheets/_bootstrap.scss";
  2. Reference Paths: for partial files, you can manually define the dependencies using comments.

    ///
    ///

  3. Reference File: for global dependencies, you can create a global references file containing reference paths.

    ///
    ///


#10

Just adding my voice to the +1 on this. I currently use Sublime Text 3 and the CSS Extended Completions package to achieve this - but i’d love to switch to Atom. Pete


#11

There is a package called CSS-SPY which helps with this.