

css files which can then be utilised in your web project however Visual Studio 2015 does not include this compiling functionality out of the box ( however strangely it allows you to add SCSS files). Once you start tinkering with Sass, it will take your preprocessed Sass file and save it as a normal CSS file that you can use in your web site. Sass lets you use features that don’t exist in CSS yet like variables, nesting, mixins, inheritance and other nifty goodies that make writing CSS fun again. The official Sass website describes Sass as: If you have never heard of Sass and want to learn more then look at the sections below.

The compressed style will make sure your CSS compiled code will be compressed.Sass is the perfect modern solution for maintaining many large complex CSS files, and keeping the CSS code DRY with many developers using Sass now to overcome these maintenance problems.

Node Sass will compile your SCSS code in the sass folder and generate a copy, if needed, to the css folder. Go to one of your projects and locate the current sass folder and then run the following command to watch the change: sass -watch sass:css -style=compressed This will install Node Sass globally which means it will be accessible from every current and future project. To install in Node Sass in the Visual Studio Code, go to Terminal and execute the following command: sudo npm install -g sass Instead, I’d like to note what I’ve done to make things work in case I need to redo it in the future.

In this node, I’m not going into details of what those options are. Among them, there is a Node Sass extension, the Ruby Compass-like tool to compile SCSS codes into CSS with tons of options. It comes with all the things developers need to make their lives easier. I know I’m late to the party, but Visual Studio Code really saves my day. I’ve been using Ruby Compass to compile my SCSS code into CSS for a number of years.
