Skip to content

Instantly share code, notes, and snippets.

@lydemann
Last active August 12, 2019 13:33
Show Gist options
  • Save lydemann/4a79c7a21e11ddfc11e8d5f84e445bdd to your computer and use it in GitHub Desktop.
Save lydemann/4a79c7a21e11ddfc11e8d5f84e445bdd to your computer and use it in GitHub Desktop.
VS code settings for auto format, fix and organize imports.
{
"editor.codeActionsOnSave": {
"source.organizeImports": true,
"tslint.autoFixOnSave": true
},
"editor.formatOnSave": true
}
@cgatian
Copy link

cgatian commented Aug 12, 2019

With latest tslint this is what I needed:

 "editor.codeActionsOnSave": {
    "source.fixAll": true,
    "source.organizeImports": false
  },
  "editor.formatOnSave": true,

@lydemann
Copy link
Author

Thanks, you are right. I just updated it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment