Multiple cursors / highlight next instance of currently highlighted word

前端 未结 7 1599
长情又很酷
长情又很酷 2020-12-12 14:41

In Sublime Text, it\'s easy to select the next instance of a word by pressing command + d and also place multiple cursors by pressing command & clicking

7条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-12 15:11

    It is possible starting from Xcode 10 Beta 3

    You can add selections for the next and previous find results using the “Find and Select Next” and “Find and Select Previous” menu commands.

    Additionally, you can quickly add selections for the next and previous occurrences of the current selected text using the “Select Next Occurrence” and “Select Previous Occurrence” menu commands.

    E to select next occurence of currently selected

    E to select previous occurence of currently selected

    G to find and select next

    G to find and select previous

    You can also use the Find menu to find these actions. Of course, feel free to bind it to different hotkeys!

提交回复
热议问题