PhpStorm
 
Get PhpStorm

Code Style: Vue

Last modified: 20 January 2022

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

PhpStorm | Settings | Editor | Code Style | Vue for macOS

Ctrl+Alt+S the Settings 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