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

后端 未结 8 532
佛祖请我去吃肉
佛祖请我去吃肉 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 10:02

    Better use \s I think. ^(?![\s]*//).*your_search_term

    0 讨论(0)
  • 2021-02-02 10:03

    delete the commented out code, it is in source control right? there is no need to keep it in the file as well.

    0 讨论(0)
提交回复
热议问题