VSCode: trigger organizeImports when git staging
问题 I like the automated organize feature in VSCode, but having it doing it on every save has given me some trouble. ... "editor.codeActionsOnSave": { "source.organizeImports": true }, ... Is it possible to set up some git hooks that organize the imports (either via vscode or some other script/lib) when I stage them? Issues If I hit save too early (do it to kick off prettier all the time) before I have used the imported methods - then it removes it and I have to write the import again. If I break