News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Select the current word

Started by eddyq, January 02, 2013, 09:23:28 PM

Previous topic - Next topic

eddyq

Is there a key shortcut to select the current word (e.g., the ctrl/W in Windows Visual Studio)?

MortenMacFly

Quote from: 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)?
Double-click with the mouse?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

eddyq

I'm asking about a keyboard shortcut, not a mouse solution.

jarod42

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).

MortenMacFly

Quote from: 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).
...using the keymacs plugin you can assign a macro to it.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

eddyq

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.