CLion 2018.2 Help


CLion 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 a pop-up information window, hover the mouse pointer over a stripe in the Validation sidebar. To examine errors and apply suggested quick fixes, press Alt+Enter.

Installing Stylelint

  • Open the embedded Terminal (View | Tool Windows | Terminal or Alt+F12) and type npm install -g stylelint at the command prompt.

Activating and configuring Stylelint

  1. In the Settings/Preferences dialog (Ctrl+Alt+S), click Stylesheets under Languages and Frameworks, and then click Stylelint. The Stylelint page opens.

  2. Select the Enable checkbox to activate Stylelint. After that the controls in the dialog box become available.

  3. In the Node Interpreter field, specify the Node.js interpreter to use. If you choose the Project alias, CLion will automatically use the project default interpreter from the Node interpreter field on the Node.js and NPM page.

    In most cases, CLion detects the project default interpreter and fills in the field itself. You can also choose another configured local interpreter or click browseButton and configure a new one.

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

Last modified: 27 November 2018