How Do You Select the Same Word in Vscode

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 all occurrences of a word in Visual Studio?

ShortcutActionShift+Alt+/Skip next matching occurrenceAlt + clickAdd a box selectionEsc or clickClear all selections

How do I select all in Vscode?

Select a word and press Shift + Cmd + L to select all instances of your selection.

Sarah Jenkins

Sarah Jenkins

Senior Technology Editor & AI Specialist

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.

Share this article
Twitter Facebook Pinterest