Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .