18

How can I link .scss files to be automatically use css color scheme?

Rafał Rawicki
  • 22,324
  • 5
  • 59
  • 79
Abdulaziz Alsubaie
  • 710
  • 2
  • 8
  • 17
  • 2
    This question was asked in a slightly different form (eg, with a different extension) at http://stackoverflow.com/questions/7574502/set-default-syntax-to-different-filetype-in-sublime-text-2 – Roger_S Jun 09 '12 at 00:41

1 Answers1

28

There are two ways to do this.

The first way is to open a css file and then go to Preferences > Settings - More > Syntax Specific - User to open a file called CSS.sublime-settings. add the following code there:

{ "extensions": [ "scss"] }

The second way to do this is to click on the file-type button in the bottom right corner of the editor (on the status bar). At the top of the menu you'll find Open all with current extension as... click on it and then choose css from the list (This will basically add the same code as above to your css.sublime-settings file).

cameronroytaylor
  • 1,578
  • 1
  • 17
  • 18
Allen Bargi
  • 14,674
  • 9
  • 59
  • 58