Quantcast
Channel: User HolyBlackCat - Stack Overflow
Viewing all articles
Browse latest Browse all 1287

Answer by HolyBlackCat for How to replace a char within a string in VSCode find/replace?

$
0
0

I do some regex and i can find all instances of some-text-that-looks-like-this, i.e.

(some-text-.*)\b

After that, do CtrlShiftP -> Select All Occurences of Find Match to select all matching words.

Then click Find in Selection button (the button with three horizontal lines in the "find" popup).

Then just type - in "find" and _ in "replace", and click Replace All.


Viewing all articles
Browse latest Browse all 1287

Trending Articles



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