Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Code: Select each occurrence of word (case sensitive)

I know that Ctrl+Shift+L is used to select all the instances of word/selection, but is there a case sensitive version of this command?

like image 713
Abhijeet Khangarot Avatar asked Jun 07 '18 17:06

Abhijeet Khangarot


People also ask

How do you select all occurrences of a 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 I select multiple instances of word in Visual Studio?

In Visual Studio 2019, you can put your caret on the right place and then press SHIFT ALT and . (dot). This will select the next occurrence.


2 Answers

By pressing Alt+C on Windows (or ⎇ Option+⌘ Command+C on MacOS) you are toggling case sensitivity for:

  1. Search Ctrl+F (⌘ Command+F)
  2. Select next occurrence Ctrl+D (⌘ Command+D)
  3. Select all instances Ctrl+Shift+L (⌘ Command+Shift+L)
like image 134
the-catalin Avatar answered Sep 22 '22 17:09

the-catalin


For Mac ⎇ Option+⌘ Command+C will toggle case sensitivity:

enter image description here

like image 21
Edwin Liu Avatar answered Sep 21 '22 17:09

Edwin Liu