Vetur: How to disable format on save

Created on 13 Jan 2019  路  7Comments  路  Source: vuejs/vetur

  • [x] I have searched through existing issues
  • [x] I have read through docs
  • [x] I have read FAQ

Problem

How do I disable formatting on save entirely? I'd rather not make big diffs (eg when extending an existing project without a formatter) :-)

question

Most helpful comment

"vetur.format.enable": false

All 7 comments

"editor.formatOnSave": false.

I still wanted format on save for other languages/plugins in the project so I ended up setting each fo the vetur formatters to "none" in my preferences. It'd be nice if there was one setting -- "vetur.formatOnSave: false" to completely disable it just for Vue

is possible to disable it per-project?

"vetur.format.enable": false

hi,
per-files if you want @b4dnewz
"[vue]": { "editor.formatOnSave": true },

Where to add this code? I am new to it. Can anyone please guide me? How to find the config file for it on Visual Studio Code?

Where to add this code? I am new to it. Can anyone please guide me? How to find the config file for it on Visual Studio Code?

in settings.json

Was this page helpful?
0 / 5 - 0 ratings