張皓翔
張皓翔

Reputation: 361

How to highlight same words in vscode

As title, how to highlight same words like this:

enter image description here

my OS is windows. whenever my cursor point to a words and the same words don't highlight like this:

enter image description here

Upvotes: 2

Views: 3558

Answers (2)

Hashem Aboonajmi
Hashem Aboonajmi

Reputation: 13900

Use Command+Shift+L on Mac or Ctrl+Shift+L on Windows to select all similar words.

Upvotes: 2

Ehsan K. harchegani
Ehsan K. harchegani

Reputation: 3128

Using Ctrl+D you can select the instances of a word and even edit them at the same time for hilighting you can use double-click, for more advance solution you can use https://marketplace.visualstudio.com/items?itemName=cliffordfajardo.hightlight-selections-vscode

Upvotes: 4

Related Questions