vs code select multiple words code example

Example 1: vs code select same word

Ctrl + D, Ctrl+Shift+L

Example 2: multiple word select in vs code

//Selects the word at the cursor, or the next occurrence of the current selection.
Ctrl+D 

//To add cursors to all the occurrences of a highlighted word 
Ctrl+Shift+L 
//Then select all occurrences of that word

Example 3: VSCode search multiple words

*** How to search in the file tree, for multiple words? ***
The option "User Regular Expression" should be on!

word1(.*)word2

word1|word2|word3

Example 4: how to replace text for same words vs code

(1) Select your code

(2) Ctrl+Shift+L (which is editor.action.selectHighlights)

(3) voila, multiple cursors done - type away.

Tags:

Html Example