Stop Visual Studio Code From Automatically Adding Semicolons In .vue Files

Engr.MTH picture Engr.MTH · Nov 5, 2017 · Viewed 20.2k times · Source

I use Visual Studio Code with Vetur extension, when I right click on my .vue file and chose "Format Document" option Visual Studio Code automatically add the semicolons that intentionally removed them.

How do I stop this?

Answer

KM3 picture KM3 · Jun 18, 2018

Put this in your user settings and it won't change your semis:

"vetur.format.defaultFormatter.js": "vscode-typescript",