Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to select whole word under the cursor in Visual Studio Code?

What hotkey or command helps to select the whole word under the cursor in VSC? (Like CTRL or ALT + D in ST3)

like image 714
Anton Avatar asked Oct 11 '18 12:10

Anton


People also ask

How do you select a whole word in VS Code?

Ctrl+D selects the word at the cursor, or the next occurrence of the current selection. Tip: You can also add more cursors with Ctrl+Shift+L, which will add a selection at each occurrence of the current selected text.

How do you select a word under a cursor?

Using arrow-based key combinations, you should find that Ctrl ← will move to the start of the current word (or the previous word, if the cursor is already at the start of the current word), and then Ctrl Shift → will select the current word. Some applications use different shortcuts for the above.

How do I select a whole line of text in Visual Studio?

Shift + End = Select the entire line from start to end. Shift + Home = Select the entire line from end to start.

How do I select all text in VS Code?

Goto File > Preferences > Keyboard Shortcuts. in the search bar type this Select All. There's should a couple of results, you'll obviously want the "Select All" result. right click on his line and click on Change When Expression.


1 Answers

To select the word under the cursor in VSCode: ctrl + d

like image 100
Gary Avatar answered Sep 30 '22 12:09

Gary