简体   繁体   English

Sublime Text-使用键盘快捷键跳转到第一个搜索结果

[英]Sublime Text - jump to first search result with keyboard shortcut

Alt + Enter will select every instance. Alt + Enter将选择每个实例。 I want to go to the selected occurrence. 我要转到所选的事件。 In IntelliJ I can do it with Cmd + Enter . 在IntelliJ中,我可以使用Cmd + Enter来实现

I have 2 simple questions: 我有2个简单的问题:

  1. How to switch between occurrences? 如何在事件之间切换?
  2. Shortcut for set cursor on first. 首先将设置光标的快捷方式。

You can do this with combinations of built-in shortcuts. 您可以使用内置快捷键的组合来完成此操作。

  1. Move the cursor to the beginning of the file. 将光标移动到文件的开头。 See this question for how to do this on every platform. 有关如何在每个平台上执行此操作的信息,请参见此问题
  2. Open the find panel and start typing your search query. 打开查找面板,然后开始输入搜索查询。 As you type, the first match will be highlighted. 键入时,第一个匹配项将突出显示。
  3. Esc 退出

You should now have the first match selected. 现在,您应该选择第一个匹配项。

If you want to switch between occurrences, then do steps 1 and 2 above. 如果要在事件之间进行切换,请执行上面的步骤1和2。 In the find panel, Enter and Shift + Enter will cycle forward and backward between matches. 在查找面板中, EnterShift + Enter将在匹配之间前后循环。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM