Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Code searching with regular expression flag modifiers?

For example, how do you set the i flag to perform a case insensitive match? Is it even possible?

In code I would usually do something like /needle/i

The Visual Studio Code documentation only makes a passing reference to the fact it uses the ripgrep regex engine. The docs there didn't help me either.

like image 869
David Avatar asked Oct 17 '22 07:10

David


1 Answers

In the find panels, selecting the "Match Case" option turns a case-insensitive search into a case-sensitive search. So if the option is not selected, the search is case-insensitive.

find panel: match case

like image 131
Mark Avatar answered Oct 21 '22 09:10

Mark