To exclude commented code when using Find and Replace in Visual Studio


You can use regex along with the search term as  given below

^(?![ \t]*((\/\/)|(\/\*))).*your_search_term

and don’t forget to check the Use Regular Expression option in the Find dialog box.


vs find and replace

No Comments

Add a Comment

Recent Posts