How can I search in Visual Studio and get it to ignore what is commented out?

后端 未结 8 548
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-02 09:20

I am refactoring a C++ codebase in Visual Studio 2005. I\'m about half way through this process now and I\'ve commented out a lot of old code and replaced or moved it. Now I\'

8条回答
  •  天涯浪人
    2021-02-02 09:59

    Just to add on, as I was doing a "find all" for division operator used in the code, used the below to exclude comments as well as and /> from aspx files:

    ^~(.*//)~(.*/\*)~(.*\<\/)~(.*/\>).*/
    

提交回复
热议问题