How to navigate between instances of selected text in Sublime Text 3?

后端 未结 4 2228
自闭症患者
自闭症患者 2020-12-29 07:08

Sublime Text 3 highlights all instances of currently selected text. Is there any shortcut to navigate cursor to the next / previous instance (copy) of selected text?

4条回答
  •  一个人的身影
    2020-12-29 08:04

    I may be misunderstanding your question but what you are asking seems pretty simple and I wonder if that means you might mean something else. Anyway here's an answer that I hope is what you are looking for.

    First, ensure that you have the following set to true in your preferences:

    // If true, the selected text will be copied into the find panel when it's
    // shown.
    // On OS X, this value is overridden in the platform specific settings, so
    // you'll need to place this line in your user settings to override it.
    "find_selected_text": true,
    

    Select the string you are interested in.

    Search in current file [OS X Cmd+F :: Windows Ctrl+F]

    Now you can step through the matches:

    • Forward [OS X Cmd+G :: Windows F4]
    • Back [OS X Cmd+Shift+G :: Windows Shift+F4]

    Some more here :: http://www.cheatography.com/njovin/cheat-sheets/sublime-text-2-keyboard-shortcuts-windows/

    What am I missing in your question?

提交回复
热议问题