Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sass autocomplete in Sublime text 3

I use Sublime text 3 and installed plugins Sass, Syntax Highlighting for Sass, CSS Completions and CSS Extended Completions, but when I work with .scss, there aren't any auto-complete options for CSS keywords.

I followed this post, where isn't mentioned auto-complete functionality and this post, where is mentioned only emmet.

Anybody knows how to add sass auto-complete to sublime text 3?

like image 263
Matt Avatar asked Aug 27 '15 21:08

Matt


People also ask

How do I enable autocomplete in Sublime Text 3?

Usage. By default, Sublime Text will automatically show the completions popup when a user is editing source code or markup, but not within prose in comments, strings or markups. Pressing the Esc key will hide the completions popup. To manually show the completions popup, press Ctrl+Space.


1 Answers

The problem that you are likely running into is that Sublime is loading your .scss file with Sass syntax. The Sass syntax is a bit different than SCSS (they did away with the curly braces and semi-colons. If you go to this link you can see the difference between the two). To get your .scss files working you will need the SCSS plugin. Install it and set the syntax to SCSS and the auto-complete should start working for you.

like image 74
Joshua Kleveter Avatar answered Sep 20 '22 11:09

Joshua Kleveter