IntelliJ IDEA
 
Get IntelliJ IDEA
You are viewing the documentation for an earlier version of IntelliJ IDEA.

Code Style: Vue

Last modified: 02 April 2021

File | Settings | Editor | Code Style | Vue for Windows and Linux

IntelliJ IDEA | Preferences | Editor | Code Style | Vue for macOS

Ctrl+Alt+S the Settings/Preferences icon

Use this page to configure formatting options for Vue files. When you change these settings, the Preview pane shows how this will affect your code.

Specify which top-level tags should have their content indented, by default, indentation is applied only to code inside template tags. Also decide on whether indentation should be uniform for all top-level tags or depend on the language used, for example, be HTML or Pug-specific.

Language and Framework-Specific Guidelines