# Sass and SCSS in Compass applications

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/help/go/2026.3/llms.txt).

> **TL;DR**
> Required plugins:
>
>
>
> `Compass`:   install the plugin on the Settings | Plugins page.
>
>
>
> `File Watchers`:   the plugin is bundled with GoLand and enabled by default.

> **Warning:**
> Since GoLand 2020.1, Compass support in the IDE has been deprecated.
>
>
>
> However, Compass support is still available through the Compass plugin, which can be installed on the Settings | Plugins page as described in [Installing plugins from JetBrains Marketplace](managing-plugins.html#install_plugin_from_repo).

With [Compass support](http://compass-style.org/) in GoLand, your Sass or SCSS Style Sheets in Compass applications are compiled into CSS automatically.

## Before you start

Procedure:

1. [Download and install Ruby](http://www.ruby-lang.org/en/downloads/).

2. Install and enable the Compass plugin on the Settings | Plugins page, as described in [Installing plugins from
JetBrains Marketplace](managing-plugins.html#install_plugin_from_repo).

3. Make sure the  File Watchers plugin is enabled in the settings.  Press `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Comma` (VSCode), `⌘ Comma` (VSCode (macOS)) to open settings and then select `Plugins`.  In the search field, type File Watchers. For more information about plugins, refer to [Managing plugins](managing-plugins.html).

## Installing Compass

Procedure:

* In your command-line shell or in the embedded Terminal (`Alt+F12` (Windows), `⌥ F12` (macOS), `⌥ F12` (IntelliJ IDEA Classic (macOS)), `⌘ ⌃ T` (macOS System Shortcuts), `Alt+F12` (XWin), `Alt+F12` (GNOME), `Alt+F12` (KDE), `Alt+F12` (Emacs), `Alt+F12` (Sublime Text), `⌥ F12` (Sublime Text (macOS)), `Ctrl+`` (VSCode), `⌃ `` (VSCode (macOS))) , type:

`gem install compass`

Compass is installed in the folder where Ruby executable file and the `gem.bat` file are stored.

## Creating a new Compass application

If you have no Compass application yet, you can create it or add Compass support to an empty GoLand project. In either case, a `conf.rb` configuration file is generated.

Procedure:

* In your command-line shell or in the embedded Terminal (`Alt+F12` (Windows), `⌥ F12` (macOS), `⌥ F12` (IntelliJ IDEA Classic (macOS)), `⌘ ⌃ T` (macOS System Shortcuts), `Alt+F12` (XWin), `Alt+F12` (GNOME), `Alt+F12` (KDE), `Alt+F12` (Emacs), `Alt+F12` (Sublime Text), `⌥ F12` (Sublime Text (macOS)), `Ctrl+`` (VSCode), `⌃ `` (VSCode (macOS))) , type:

`compass create <the name of the application to be created>`

* Create an empty GoLand project  ,    open your command-line shell or  the embedded Terminal (`Alt+F12` (Windows), `⌥ F12` (macOS), `⌥ F12` (IntelliJ IDEA Classic (macOS)), `⌘ ⌃ T` (macOS System Shortcuts), `Alt+F12` (XWin), `Alt+F12` (GNOME), `Alt+F12` (KDE), `Alt+F12` (Emacs), `Alt+F12` (Sublime Text), `⌥ F12` (Sublime Text (macOS)), `Ctrl+`` (VSCode), `⌃ `` (VSCode (macOS)))  , and type:

```SHELL
cd <application folder>
compass init
```

Procedure: Activate Compass-aware support in your application

1. Open a `.sass` or `.scss` file, click the red bulb next to the `@import 'compass'` statement or press `Alt+Enter` (Windows), `⌥ ⏎` (macOS), `⌥ ⏎` (IntelliJ IDEA Classic (macOS)), `⌥ ⏎` (macOS System Shortcuts), `Alt+Enter` (XWin), `Alt+Enter` (GNOME), `Alt+Enter` (KDE), `Alt+Enter` (Emacs), `Alt+Enter` (Sublime Text), `⌥ ⏎` (Sublime Text (macOS)), `Ctrl+.` (VSCode), `⌘ .` (VSCode (macOS)), and then choose Configure Compass from the suggestion list.

> **Tip:**
> Alternatively,   in the Settings dialog (`Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Comma` (VSCode), `⌘ Comma` (VSCode (macOS))), go to Languages & Frameworks | Style Sheets | Compass.

2. Select the Enable Compass support checkbox, and specify the paths to the Compass executable file and to the `conf.rb`  configuration file.

## Starting with an existing Compass application

Procedure: Open the application sources that are already on your machine

* Click Open on the Welcome  screen or select `File | Open`   from the main menu. In the dialog that opens, select the folder where your sources are stored.

Procedure: Check out the application sources from your version control

1. Click Clone Repository on the Welcome  screen.

Alternatively, select  `Git | Clone…` or `VCS | Get from Version Control` from the main menu.

Instead of Git in the main menu, you may see any other Version Control System that is associated with your project. For example, Mercurial or Perforce.

![check_out_from_vcs](https://resources.jetbrains.com/help/img/idea/2026.3/go_check_out_from_vcs.png)

## Compiling Sass and SCSS

To compile your code automatically, you need to install a compiler and configure a [Compass Sass or Compass SCSS File Watcher](#compass_create_file_watcher) which will track changes to your files and run the compiler.

> **Tip:**
> You can also use the compiler from the command line or [configure it as a third-party tool](configuring-third-party-tools.html).

When you open a file, GoLand checks whether an applicable File Watcher is available in the current project. If such File Watcher is configured but disabled, GoLand displays a popup that informs you about the configured File Watcher and suggests to enable it.

If an applicable File Watcher is configured and enabled in the current project, GoLand starts the compiler automatically upon the event specified in the [New Watcher dialog](new-watcher-dialog.html).

* If the Auto-save edited files to trigger the watcher checkbox is selected, the File Watcher is invoked as soon as any changes are made to the source code.

* If the Auto-save edited files to trigger the watcher checkbox is cleared, the File Watcher is started upon save (`File | Save All`, `Ctrl+S` (Windows), `⌘ S` (macOS), `⌘ S` (IntelliJ IDEA Classic (macOS)), `⌘ S` (macOS System Shortcuts), `Ctrl+S` (XWin), `Ctrl+S` (GNOME), `Ctrl+S` (KDE), `Ctrl+X, Ctrl+S` (Emacs), `Ctrl+S` (Sublime Text), `⌘ S` (Sublime Text (macOS)), `Ctrl+K, S` (VSCode), `⌘ ⌥ S` (VSCode (macOS))) or when you move focus from GoLand (upon frame deactivation).

Learn more from [File Watchers](using-file-watchers.html).

GoLand creates a separate file with the generated output. The file has the name of the source Sass or SCSS file and the extension `.css`. The location of the generated files is defined in the Output paths to refresh field of the [New Watcher dialog](new-watcher-dialog.html). However, in the Project Tree, they are shown under the source file which is now displayed as a node.

Procedure: Create a File Watcher

1. In the Settings dialog (`Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Comma` (VSCode), `⌘ Comma` (VSCode (macOS))), click File Watchers under Tools. The [File Watchers page](settings-tools-file-watchers.html) that opens shows the list of already configured File Watchers.

2. Click ![Add button](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.add.svg) or press `Alt+Insert` (Windows), `⌘ N` (macOS), `⌃ N` (IntelliJ IDEA Classic (macOS)), `⌘ N` (macOS System Shortcuts), `Alt+Insert` (XWin), `Alt+Insert` (GNOME), `Alt+Insert` (KDE), `Alt+Insert` (Emacs), `Ctrl+N` (Sublime Text), `⌘ N` (Sublime Text (macOS)), `Alt+Insert` (VSCode), `⌃ ⏎` (VSCode (macOS)). Depending on the tool you are going to use,  choose the compass sass or compass scss predefined template from the  list. The [New Watcher](new-watcher-dialog.html) dialog opens.

3. In the Program field, specify the path to the executable file:

* `compass.bat` for Windows

* `compass` for Unix and macOS

4. In the Arguments field, type one of the following depending on the operating system used:

Windows:

* `compile $UnixSeparators($ProjectFileDir$)$` to process an entire directory

* `compile $UnixSeparators($FilePath$)$` to process a single file

macOS:

* `compile $ProjectFileDir$` to process an entire directory

* `compile $ProjectFileDir$ $FilePath$` to process a single file

Linux (Ubuntu):

* `compile $ProjectFileDir$` to process an entire directory

* `compile $ProjectFileDir$ $FilePath$` to process a single file

5. Proceed as described in [File Watchers](using-file-watchers.html).

## See also

### Procedures

[File Watchers](using-file-watchers.html) [Minifying CSS](compressing-css.html) [Sass, SCSS, Less, and PostCSS](transpiling-sass-less-and-scss-to-css.html) [Stylus](transpiling-stylus-to-css.html)

### Reference

[File Watchers](settings-tools-file-watchers.html) [New Watcher Dialog](new-watcher-dialog.html)

### External Links

[http://compass-style.org/](http://compass-style.org/)

