Lonefy / vscode-JS-CSS-HTML-formatter

JS,CSS,HTML formatter for vscode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Format on Save

jchannon opened this issue · comments

Is there an option in this plugin or js-beautify to format on save?

@jchannon Sorry, currently not. I'll try to add this feature soon. Thx for this suggestion :)

@jchannon onSave feature has been added

@Lonefy every time when I save file cursor goes to the end of formatted file. I want to remember my cursor position after formatting. Is it possible?

@nuqz @Lonefy Same problem. Please fixed this issue cursor goes to the end line after saving.

The extension doesn't respect the onSave option being set to false (not the mention audacity of assuming setting it to true is a default anyone would want or expect). It constantly formatted my files on save. I had to uninstall.

Is there an option to disable the onSave option?

in VS Code, Press F1 -> Search for "Formatter Config" and open it.
Change 'onSave' to false. Restart VS Code.
Enjoy :)