DEV Community

Al-Amin Islam
Al-Amin Islam

Posted on

How to auto format code on vscode

vs code #code-format

I work with vue project that add a eslint file to define some rules. And I also use vscode extension to format the code when pressing alt + shift + f. Then show the dropdown and add this. Then code is working auto formatting.

"[vue]": {
    "editor.defaultFormatter": "Vue.volar"
  }
Enter fullscreen mode Exit fullscreen mode

Top comments (0)