microsoft / vscode-typescript-tslint-plugin

VS Code extension that provides TSLint support using the typescript-tslint-plugin
https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-typescript-tslint-plugin
MIT License
188 stars 34 forks source link

How can one execute fix all? #6

Closed usernamehw closed 5 years ago

usernamehw commented 5 years ago

Using tslint extension I have this as a keybinding:

{
  "key": "ctrl+shift+alt+z",
  "command": "tslint.fixAllProblems",
  "when": "resourceExtname == '.ts'"
}

Or from command palette: TSLint: Fix all auto-fixable problems.

Is it possible to have the same functionality from this plugin?


I know this way:

  1. click on warning
  2. open quick fix menu
  3. find that item in the menu Fix all auto-fixable tslint failures

^ That's too long


Not a fan of fixing on save either.

mjbvz commented 5 years ago

This requires https://github.com/Microsoft/vscode/issues/62110 or similar upstream