bni*_*and 31 visual-studio-code
是否有"在搜索结果窗格中转到下一个搜索结果"的vscode键绑定?
我无法在keybindings json或http://code.visualstudio.com/docs/customization/keybindings中找到它,但描述并不总是那么好,我可能错过了它!
Rhy*_*den 45
现在支持此功能.
如果您打算将 F4 和 Shift-F4 重新绑定到不同的键,请注意有多个操作绑定到这些键:
{ "key": "f4", "command": "goToNextReferenceFromEmbeddedEditor", "when": "inReferenceSearchEditor" },
{ "key": "shift+f4", "command": "goToPreviousReferenceFromEmbeddedEditor", "when": "inReferenceSearchEditor" },
{ "key": "f4", "command": "search.action.focusNextSearchResult", "when": "hasSearchResult" },
{ "key": "shift+f4", "command": "search.action.focusPreviousSearchResult", "when": "hasSearchResult" },
{ "key": "f4", "command": "goToNextReference", "when": "referenceSearchVisible" },
{ "key": "shift+f4", "command": "goToPreviousReference", "when": "referenceSearchVisible" },
{ "key": "f4", "command": "references-view.next", "when": "reference-list.hasResult" },
{ "key": "shift+f4", "command": "references-view.prev", "when": "reference-list.hasResult" },
Run Code Online (Sandbox Code Playgroud)
为了保持一致的行为,您可能希望将它们全部重新绑定。
如果 VSCode 自此回答以来添加了任何新的键绑定,我建议您打开键盘快捷键窗口并在Shift+F4那里搜索。
版本1.9.0中的新功能
执行search.action.focusNextSearchResult(F4)
和search.action.focusPreviousSearchResult(CTRL+ F4)
原始答案
遗憾的是,目前没有命令转到搜索结果窗格中的下一个条目.作为一种解决方法,您可以执行workbench.view.search(默认情况下*绑定到CTRL+ Shift+ f)并导航到下一个项目↓并选择它ENTER.
当您执行actions.find(默认绑定为Shift+ f)以便仅在当前文件中查找文本时,您可以使用editor.action.nextMatchFindAction通常绑定的命令F3.它的默认绑定声明如下:
{
"key": "f3", "command": "editor.action.nextMatchFindAction",
"when": "editorFocus"
}
Run Code Online (Sandbox Code Playgroud)
默认快捷方式基于Windows版本的VSCode
| 归档时间: |
|
| 查看次数: |
4700 次 |
| 最近记录: |