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

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

    If you comment your old code with // you can use regular expressions while searching for something in your codebase. Something like this for example: ^[^/][^/].*your_function_name.*.

提交回复
热议问题