Keyboard shortcut - highlight current word
-
Currently using Qt Creator 7 (Qt 6.2.3)
I notice many others have a lightning-quick ability to highlight a word, copy and paste it.
Without using moving your hands from keyboard to mouse, is there a quick way?
Thanks.
-
-
So, I tried that, and yes, it's sort of what I mean, but not quite.
So, try this:Single-click on a word.
Now Double-clickYou'll see that it highlights the whole, complete command/word/etc.
Is there a keyboard shortcut to do the same thing?
Thanks.
@Uberlinc said in Keyboard shortcut - highlight current word:
Is there a keyboard shortcut to do the same thing?
That is what Ctrl-Shift-CursorLeft/Right does? Or do you want to select more than one word at once?
-
@Uberlinc said in Keyboard shortcut - highlight current word:
Is there a keyboard shortcut to do the same thing?
That is what Ctrl-Shift-CursorLeft/Right does? Or do you want to select more than one word at once?
@jsulm said in Keyboard shortcut - highlight current word:
That is what Ctrl-Shift-CursorLeft/Right does? Or do you want to select more than one word at once?
If you happen to click into the middle of a word, Ctrl-Shift-CursorLeft/Right only highlights from where the cursor is sitting until the end/beginning of the word.
It doesn't highlight the entire word (e.g. like a double-click would.) -
@jsulm said in Keyboard shortcut - highlight current word:
That is what Ctrl-Shift-CursorLeft/Right does? Or do you want to select more than one word at once?
If you happen to click into the middle of a word, Ctrl-Shift-CursorLeft/Right only highlights from where the cursor is sitting until the end/beginning of the word.
It doesn't highlight the entire word (e.g. like a double-click would.)@Uberlinc
if you are in middle of word then you can go at it's beginning withCTRL+ LEFT/RIGHT arrowand select it using the above methodThere is option for shortcut for the question that you asked too
Go to Tools>Options
Inside Environment >Keyboard
Search forselectword
Record the key sequence that you want and just save it

Unlike first method (ctrl + shift + arrow) it will select whole word irrespective of styles like camelcase
-
@Uberlinc
if you are in middle of word then you can go at it's beginning withCTRL+ LEFT/RIGHT arrowand select it using the above methodThere is option for shortcut for the question that you asked too
Go to Tools>Options
Inside Environment >Keyboard
Search forselectword
Record the key sequence that you want and just save it

Unlike first method (ctrl + shift + arrow) it will select whole word irrespective of styles like camelcase
@Thank-You said in Keyboard shortcut - highlight current word:
@Uberlinc
if you are in middle of word then you can go at it's beginning withCTRL+ LEFT/RIGHT arrowand select it using the above methodThere is option for shortcut for the question that you asked too
Go to Tools>Options
Inside Environment >Keyboard
Search forselectword
Record the key sequence that you want and just save itUnlike first method (ctrl + shift + arrow) it will select whole word irrespective of styles like camelcase
That is brilliant!
Thank you!