Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: eddyq on January 02, 2013, 09:23:28 pm

Title: Select the current word
Post by: eddyq on January 02, 2013, 09:23:28 pm
Is there a key shortcut to select the current word (e.g., the ctrl/W in Windows Visual Studio)?
Title: Re: Select the current word
Post by: MortenMacFly on January 03, 2013, 06:25:38 am
Is there a key shortcut to select the current word (e.g., the ctrl/W in Windows Visual Studio)?
Double-click with the mouse?
Title: Re: Select the current word
Post by: eddyq on January 04, 2013, 06:09:36 pm
I'm asking about a keyboard shortcut, not a mouse solution.
Title: Re: Select the current word
Post by: jarod42 on January 04, 2013, 06:26:26 pm
Not a one keyboard short-cut, but it should do the job:

Ctrl + left (to go at the beginning of the word).
Ctrl + shift + right (to select until the next word).
(Don't release shift)
shift + left (to unselect the extra space).
Title: Re: Select the current word
Post by: MortenMacFly on January 04, 2013, 06:33:34 pm
Not a one keyboard short-cut, but it should do the job:

Ctrl + left (to go at the beginning of the word).
Ctrl + shift + right (to select until the next word).
(Don't release shift)
shift + left (to unselect the extra space).
...using the keymacs plugin you can assign a macro to it.
Title: Re: Select the current word
Post by: eddyq on January 04, 2013, 07:22:27 pm
Cool, I knew about ctrl/left and ctrl/shift/right but I didn't know about shift/left. I'll make a macro to do just that.

Thanks a million.