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

后端 未结 4 2206
自闭症患者
自闭症患者 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条回答
  •  梦毁少年i
    2020-12-29 07:46

    I'm on a mac, and this has sort of already been mentioned, but it doesn't require altering the hotkey menu and works well enough for me.

    cmd+K keeps your highlight but deselects it

    cmd+D expands your selection (now empty thanks to cmd+k) by including the next occurrence

    highlight a string (one that recurs)

    while holding cmd -> press K, then press D

    alternating back and forth as many times as necessary.

    Each time D is alternated to, your highlight and selection jump to only the next occurrence.

提交回复
热议问题