GoLand 2019.3 Help


GoLand integrates with Stylelint so you can inspect your CSS code from inside the IDE. Stylelint wakes up automatically when you edit a CSS file and highlights the detected problems. To view the description of a problem in an information popup, hover the mouse pointer over a stripe in the Validation sidebar. To examine errors and apply suggested quick fixes, press Alt+Enter.

Installing Stylelint

  • In the embedded Terminal (Alt+F12), type:

    npm install -g stylelint

Activating and configuring Stylelint

  1. In the Settings/Preferences dialog Ctrl+Alt+S, go to Languages and Frameworks | Style Sheets | Stylelint.

  2. On the Stylelint page that opens, select the Enable checkbox to activate Stylelint. After that the controls in the dialog become available.

  3. In the Node Interpreter field, specify the Node.js interpreter to use. This can be a local Node.js interpreter or a Node.js on Windows Subsystem for Linux.

  4. In the Stylelint Package field, specify the location of the stylelint package installed globally or in the current project.

  5. If you want Stylelint to also wake up automatically when you are editing a JavaScript file and check Style Sheet injections in it, select the Process JS files checkbox.

Last modified: 23 March 2020