In VS Code, the F8 keyboard shortcut takes you to the next ‘problem’. Problems can be errors, warnings, or info. I want to cycle through only the errors using a keyboard shortcut. Is this possible?
Question posted in Visual Studio Code
View the official documentation.
View the official documentation.
2
Answers
It’s currently not possible- at least- not in vanilla VS Code without a dedicated extension that does it.
See this feature-request issue ticket on the VS Code GitHub repo opened by torkelrogstad: Go to next error/warning/info #105795. Quoting from the issue ticket:
It’s currently not implemented. You can show your support for the issue ticket by giving a thumbs up reaction to the issue. But please don’t make a "me too" comment. "me too" comments generally come off as annoying to repo maintainers because they clutter up discussion and don’t contribute anything of significant value.
As Mark showed in their answer, in the discussion thread of the issue ticket I linked, there is the
yy0931.go-to-next-error
extension that can be used for this.The github issue provided by @user has a link to an extension, Go To Next Error, which looks promising in my testing. You can make a keybinding like this (in your
keybindings.json
):or if you want to override the existing
F8
try these:That uses the across files command:
go-to-next-error.nextInFiles.error
. Thego-to-next-error.next.error
command would not jump to other files.Available commands are