vscode-checkstyle
vscode-checkstyle copied to clipboard
Fix all of same type, and fix all in file
ESLint has functionality which provides the following additional quickfixes:
- Perform quick fix for all instances of this issue in this file. For example, "Fix all instances of StringLiteral in this file"
- Perform quick fix for all auto-fixable issues in this file. Titled "Fix all auto-fixable issues"
I tried to implement this myself but couldn't figure out how the ESLint extension is structured. I think this line may have something to do with it:
https://github.com/microsoft/vscode-eslint/blob/3aef00d9320a00890beec9f3f8160d5f82a47626/server/src/eslintServer.ts#L2100
parts of your request are already available: if your cursor selection includes multiple instances of e.g. single quote issues then invoking a quick fix will apply to all of them (if you can find the one yellow lightbulb that will appear next to the first occurrence)