Sublime text editor: how to select all instances of selected region?

江枫思渺然 提交于 2019-12-02 13:47:07
Kurt UXD

On Mac OS you can use: CMD + CTRL + G

oli

On Windows/Linux press Alt+F3.

" On Windows/Linux press Alt+F3. "

Worked for me on Ubuntu. I changed it in my 'Key-Bindings:User' to something that I liked better though.

Note

You should not edit the default settings, because they get reset on updates/upgrades. For customization, you should override any setting by using the user bindings.

On Mac: Sublime Text 2 > Preferences > Key Bindings-Default Sublime Text 3 > Preferences > Key Bindings

This opens a document that you can edit the keybindings for Sublime.

If you search "ctrl+super+g" you find this:

{ "keys": ["ctrl+super+g"], "command": "find_all_under" },
andrewswank

On Mac:

+ CTRL + g

However, you can reset any key any way you'd like using "Customize your Sublime Text 2 configuration for awesome coding." for Mac.


On Windows/Linux:

Alt + F3

If anyone has how-tos or articles on this, I'd be more than happy to update.

In the other posts, you have the shortcut keys, but if you want the menu option in every system, just go to Find > Quick Find All, as shown in the image attached.

Also, check the other answers for key binding to do it faster than menu clicking.

Hope it helps! :)

Ram

Even though, here there are multiple answers, there is an issue in using this approach. It selects all the text match. Not only the whole words like variables. As per this question and answer, we have to start with a empty selection. That is, start using the shortcut Alt+F3 would help selecting only the whole words.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!