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.

I'm using Sublime Text 3 on Windows 8.1. Could be ST2, I don't think this is relevant.

I'm aware we can add multiple cursors to select different portions of different lines. Also, if we're looking for the same instance of a word, then we can just hit Ctrl+D to select the next, and so on.

But what if I want to select two words or phrases in the same line? For example: "Winners don't use drugs" I'm navigating the caret with the arrow keys so I can select the word "Winners" by doing a hold Shift+right arrow. At that point, if I want to add the word "drugs" to the selection, then I'd have to hold Ctrl and use the mouse over it.

Can it be done via keyboard? Splitting into lines is not the point since this is all 'inline'. Also, navigating with Ctrl+arrows will cause the previous selection to be lost.

The idea here is to easily select two words or expressions to transpose, like: "drugs don't use Winners".

Thanks!

share|improve this question
1  
The fastest way I can think of is unfortunately via mouse. Hold Ctrl, click somewhere around 'Winners' and 'drugs', press (and release) d, press t (assuming transpose is Ctrl+t). As you can see you are holding Ctrl until the end of combination, which is time saving. –  T-- May 8 at 8:13
    
Thanks T! What you did worked. Unfortunately it still needs the mouse, but that's a huge help. –  Da Rossa May 9 at 9:28

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.