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?
github问题提供者@user /users/11107541有一个扩展的链接,转到下一个错误 https://marketplace.visualstudio.com/items?itemName=yy0931.go-to-next-error,在我的测试中看起来很有希望。您可以像这样进行键绑定(在您的keybindings.json
):
{
"key": "alt+8", // whatever keybinding you want
"command": "go-to-next-error.nextInFiles.error",
"when": "editorFocus"
}
或者如果你想覆盖现有的F8
试试这些:
{
"key": "F8",
"command": "-editor.action.marker.nextInFiles",
"when": "editorFocus"
},
{
"key": "F8",
"command": "go-to-next-error.nextInFiles.error",
"when": "editorFocus"
}
这使用跨文件命令:go-to-next-error.nextInFiles.error
. The go-to-next-error.next.error
命令不会跳转到其他文件。
可用的命令有
go-to-next-error.nextInFiles.error Go to Next Problem in Files (Error)
go-to-next-error.next.error Go to Next Problem (Error)
go-to-next-error.nextInFiles.warning Go to Next Problem in Files (Error, Warning)
go-to-next-error.next.warning Go to Next Problem (Error, Warning)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)