Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In Visual Studio, SQL Server Management Studio, etc I can hold Ctrl down and click to select a whole word. I find this makes copying and pasting multiple words much faster. I can hold Ctrl down, click a word, press c, click somewhere else, press v, repeat.

I'm wondering if this functionality is possible in Sublime Text 2 (probably with another key since Ctrl is already used for multiple selections).

share|improve this question
    
This post details a method I couldn't get it to work: stackoverflow.com/questions/9694823/… –  blented Dec 4 '12 at 16:02

3 Answers 3

Ctrl+D selects the whole Word in Sublime-Text 2. As a bonus, if you press you press it multiple times you can select different occurences of the word and do multiline editing.

share|improve this answer

Assuming your OS is Windows create a file named "Default (Windows).sublime-mousemap" in User directory (which can be accessed through menu Sublime Text 2 > Preferences > Browse Packages) and put this in it

[
    {
        "button": "button1", "modifiers": ["alt"],
        "press_command": "drag_select",
        "press_args": {"by": "words"}
    }
]

Change modifiers anyway you like and done.

share|improve this answer

Here, double click on a word selects the whole word (at least for a .txt file).

share|improve this answer
    
Yeah that works everywhere but I don't find that quite as fast –  Chris Herring Mar 7 '12 at 11:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.