Go to Error
Jump to the next or previous error in the current file. If the file has no
errors, jump to the next or previous warning instead.
Features
- Navigate to the next or previous problem in the current file
- Prefers errors over warnings: if any errors exist, only errors are visited
- Falls back to warnings when the file has no errors
- Ignores info and hint diagnostics
- Wraps around within the current file
Usage
Command Palette
- Open the Command Palette (
Cmd+Shift+P on macOS, Ctrl+Shift+P on
Windows/Linux)
- Run Go to Next Error or Go to Previous Error
Custom Keybindings
To replace VS Code's default F8 / Shift+F8 problem navigation, add the
following to keybindings.json:
{
"key": "f8",
"command": "-editor.action.marker.nextInFiles",
"when": "editorFocus"
},
{
"key": "f8",
"command": "go-to-error.next",
"when": "editorFocus"
},
{
"key": "shift+f8",
"command": "-editor.action.marker.prevInFiles",
"when": "editorFocus"
},
{
"key": "shift+f8",
"command": "go-to-error.prev",
"when": "editorFocus"
}
Installation
From VSIX file
- Download the
.vsix file
- Install via Command Palette: "Extensions: Install from VSIX..."
- Or use CLI:
code --install-extension go-to-error-1.0.0.vsix
Development
- Clone this repository
- Run
npm install
- Press
F5 to launch the Extension Development Host
- Test the extension in the new VS Code window
| |