如何在Visual Studio中搜索并使其忽略注释掉的内容? [英] How can I search in Visual Studio and get it to ignore what is commented out?

查看:989
本文介绍了如何在Visual Studio中搜索并使其忽略注释掉的内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Visual Studio 2005中重构C ++代码库.我现在已经完成了大约一半的过程,并且我已经注释掉了很多旧代码并替换或移动了它们.现在,我正在搜索以查看接下来必须更改的内容,但是搜索功能不断带给我不再关心的旧注释掉的内容.为了防万一,我还真的不想删除该旧代码.

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'm searching to see that I have to change next but the search function keeps bringing me the old commented out stuff I no longer care about. I don't really want to delete that old code yet, just in case.

有什么方法可以搜索解决方案中的所有文件,并获得忽略注释内容的结果?我看不到Visual Studio本身的一种方式,也许是可以做到这一点的插件吗?

Is there any way I can search all files in the solution and get results ignoring what is commented out? I don't see a way in visual studio itself, is the perhaps a plug-in that would do it?

推荐答案

删除注释掉的代码,它在源代码管理中正确吗?也无需将其保存在文件中.

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

这篇关于如何在Visual Studio中搜索并使其忽略注释掉的内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆