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

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

    My take:

    yes you can use regular expressions, those tend to be too slow and thinking about them distracts from focusing on real stuff - your software.

    I prefer non-obtrusive semi-inteligent methods:

    Poor man's method: Find references if you happen to use intelisense on

    Or even better: Visual assist and it's colored "Find all References" and "Go To" mapped to handy shortcuts. This speeds up navigation tremendously.

提交回复
热议问题