[英]Vscode “next search result” shortcut does not work
When I use the shortcut associated with "search.action.focusNextSearchResult" in vscode while searching something nothing happens.当我在 vscode 中使用与“search.action.focusNextSearchResult”相关联的快捷方式搜索某些东西时,什么也没有发生。
This action is initially associated with F4 which is also used for other shortcuts.此操作最初与 F4 相关联,F4 也用于其他快捷方式。 I thought it may be the problem so I reassigned it to an unused shortcut but it did not help.
我认为这可能是问题,所以我将它重新分配给一个未使用的快捷方式,但它没有帮助。
I am using the extension "Emacs Friendly Keymap" (don't know if it can cause the problem).我正在使用扩展“Emacs Friendly Keymap”(不知道它是否会导致问题)。
Do you know how I could make it work?你知道我怎样才能让它工作吗?
That shortcut, used to go to the next search result, only works in a search editor .该快捷方式用于 go 到下一个搜索结果,仅适用于搜索编辑器。 It has these context keys:
它具有以下上下文键:
hasSearchResult || inSearchEditor
Are you using it in a separate search editor?您是否在单独的搜索编辑器中使用它? It does work there.
它确实在那里工作。 Here is one way to open a
Search Editor
:这是打开
Search Editor
的一种方法:
If you are using the Find widget then use either of these:如果您使用的是 Find 小部件,请使用以下任一方法:
Enter when focus is still in the Find widget or F3 when focus is in the editor.当焦点仍在“查找”小部件中时输入,或者当焦点在编辑器中时按F3 。
If you are doing a search across files, then just a downarrow will go to the next result.如果您正在跨文件进行搜索,那么只需一个向下箭头go到下一个结果。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.