-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow "fix all auto-fixable" action to be bound to a key #38
Comments
Have you tried 0.9.6? |
Not sure. But I installed the latest one available on the npm registry minutes before opening this issue, so.. yes, probably. I can see the action available on the bulb related to a lint problem in the editor, but I can't find a bindable command for that on VSCode's key bindings interface. I'm not sure how that would be possible either, since the service is not a VSCode extension, btw... But my knowledge is limited regarding ts plugins and VSCode extensions... |
Sorry I have read too quick. It's about VSCode command. @egamma do you think it's possible to do that? |
@angelozerr Well, I realize now that I failed to mention that I was talking specifically about the interaction with VSCode. Sorry for that. Anyways, I don't see how it would be possible for a TypeScript service plugin to register a command on an IDE. The plugin doesn't have a direct relationship with any IDE. I can think of only two places where it would make sense to place that responsibility:
|
@diegovilar the request makes sense and there already is a vscode-tslint (vnext) extension the market place. It bundles the tslint language service with the extension. it would be the right place for vscode specific support as you suggest above. can you please file the issue against this extension. |
this is the extension https://marketplace.visualstudio.com/items?itemName=eg2.ts-tslint |
@egamma Cool, didn't know there was already a version of the eg2.tslint extension working with tslint-language-service. Nice. I'm filing a new issue there right now. Thanks, ppl |
Hi! I'm also really interested in adding a keyboard shortcut to autofix tslint problems. Any news? |
For the new plugin this is how you can add a key binding as per the github page:
|
Or just type |
You can setting shortcut by press CMD+K typing auto-fixable and select shortcut your like. |
After installing eslint and eslint vscode extensions.... check your VSCode Keyboard Shortcuts. If found this. It plugs semicolons where needed. I haven't used it long, so I'm not sure the extent of its use. NB: mb, I thought I read eslint, but have a go a check if it applies in your editor settings too. 😅 |
Please allow us to bind a key to fix all auto-fixable problems in the current file, just like vscode-tslint's
tslint.fixAllProblems
and vscode-eslint'seslint.executeAutoFix
.The text was updated successfully, but these errors were encountered: