Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97327

How to select all occurences and replace one by one in VSCode

$
0
0

On VSCode, it is possible to select occurences of a word one by one with CTRL/CMD + D or all at once with CTRL+SHIFT+L. With both those methods, however, you replace them all by the same value. I would like to know if there is a way to select all occurences and yet replace them one by one switching to the next one with TAB for example. For instance, in the pug code below, I would like to select one "About Us" text, click on some keyboard shortcut to automatically select them all and then press TAB to replace the first one by "Homepage", the second one by "About Us", etc. Thanks in advance!

li: a(href="#") About Us
li: a(href="#") About Us
li: a(href="#") About Us
li: a(href="#") About Us
li: a(href="#") Homepage
li: a(href="#") Careers
li: a(href="#") About Us
li: a(href="#") Contact

Viewing all articles
Browse latest Browse all 97327

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>