Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS Code detect css classes and ids from html and autocomplete? [closed]

I'm attempting to switch over from Sublime Text to VS Code. One thing I really like about Sublime is that I have a plugin that will scan all my files and allow me to access my ids and classes within my css and scss files.

Is there something similar for vscode:

like image 974
Joe Scotto Avatar asked Aug 24 '17 15:08

Joe Scotto


People also ask

How do I enable autocomplete VS Code in HTML?

Press Ctrl + Shift + P to open the command palette. Type 'Change Language Mode' in the searcher. Select 'Change Language Mode'. Type 'HTML' in the searcher.

How do I search for classes in VS Code?

1) Search file ( CTRL + P ) Simply type in the full or partial name and VSCode will automatically look into your current workspace and display the ones that contain the name you just wrote (at the top of the list would be the files already open).


1 Answers

Intellisense for CSS Class Names

HTML Class Suggestions

Class autocomplete for HTML

These extensions provide autocomplete for css class names, but neither appears to provide support for scss files or id's sadly.

CSS Peek gives "Go To Definition"/Peek support for classes and id's and although it only mentions .less supports it seems to support .scss files as well!!

I think the later is what you are looking for?

like image 169
Mark Avatar answered Sep 19 '22 15:09

Mark