// Format on Save
1. Open Settings (Ctrl + ,)
2. Search for 'Format on Save' and tick the checkbox
// ORGANIZE IMPORTS (Instead of pressing Alt + Shift + o we can set it auto on save)
1. Ctrl + Shift + p
open preferences panel and click Open Settings and Search for 'code action'
2. Editor - Code Actions on Save
click on Edit in settings.json
3. Search for "editor.codeActionsOnSave" on left side and click edit
4. Add the following
"editor.codeActionsOnSave": { "source.organizeImports": true }