format on save vs code

Format On Save in Visual Studio Code

Increase your productivity by formatting code on every save.

format on save in visual studio code

Ever forgot to format your code before creating pull request?
I bet it happened at least once. If you’re working in VS Code, this simple change in your settings will benefit in future.

Format On Save configuration

1. Press CTRL + P
2. Type "> settings.json"
3. Add following setting:
"editor.formatOnSave": true

and voilà.