在Visual Studio IDE中显示解决方案/文件路径 [英] Display solution/file path in the Visual Studio IDE

查看:379
本文介绍了在Visual Studio IDE中显示解决方案/文件路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我经常使用Visual Studio的多个实例,经常在同一解决方案的不同分支上工作.

用于显示完整路径的Visual C ++ 6.0 在其标题栏中显示当前源文件的名称,但Visual Studio 2005似乎没有执行此操作.这比确定我当前正在查看的解决方案的哪个分支稍微有些尴尬(我知道的最快方法是将鼠标悬停在选项卡上,以便获得源文件的路径作为工具提示)./p>

是否有办法将完整的解决方案或文件路径添加到标题栏中,或者至少到某个始终可见的位置,这样我才能快速确定将哪个分支加载到每个实例中?

解决方案

没有本机的方法,但是可以使用宏来实现.此处详细描述了详细信息: Visual C++ 6.0 used to display the full path of the current source file in its title bar, but Visual Studio 2005 doesn't appear to do this. This makes it slightly more awkward than it should be to work out which branch of the solution I'm currently looking at (the quickest way I know of is to hover over a tab so you get the source file's path as a tooltip).

Is there a way to get the full solution or file path into the title bar, or at least somewhere that's always visible, so I can quickly tell which branch is loaded into each instance?

解决方案

There is not a native way to do it, but you can achieve it with a macro. The details are described here in full: How To Show Full File Path (or Anything Else) in VS 2005 Title Bar

You just have to add a little Visual Basic macro to the EvironmentEvents macro section and restart Visual Studio.

Note: The path will not show up when you first load Visual Studio, but it will whenever you change which file you are viewing. There is probably a way to fix this, but it doesn't seem like a big deal.

这篇关于在Visual Studio IDE中显示解决方案/文件路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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