Anyone know of anything in VisualStudio to make your life easier when you have a bunch of files open that are named the same thing? Pretty often I'll have a bunch of files open with the same name and I don't know of any way distinguish them so I just have to go through the solution explorer. Is there a setting to add hover text for the full path on this stupid thing?
任何人都知道VisualStudio中的任何内容,当你打开一堆名为同一个文件的文件时,你的生活会更轻松吗?通常我会打开一堆同名的文件,我不知道有什么区别,所以我只需要通过解决方案资源管理器。是否有设置为这个愚蠢的事情添加悬停文本的完整路径?
alt text http://img518.imageshack.us/img518/2094/91544289.png
alt text http://img518.imageshack.us/img518/2094/91544289.png
This isn't quite the same question as Visual Studio - tips for managing work on many open files
这与Visual Studio不完全相同 - 用于管理许多打开文件的工作的提示
I know ctrl-tab gives the full path, but it is still a little cumbersome as you have to arrow around to see the full path, and when there are lots of files open it isn't really any faster than using solution explorer.
我知道ctrl-tab提供了完整的路径,但它仍然有点麻烦,因为你必须向左箭头查看完整路径,并且当有大量文件打开时,它实际上并不比使用解决方案资源管理器快。
4 个解决方案
#1
I mouse over the tab and it shows me the file directory.
我将鼠标悬停在选项卡上,它显示了文件目录。
Also since you are using Resharper you can use this keyboard shortcut and it will highlight the file in solution explorer.
此外,由于您使用Resharper,您可以使用此键盘快捷键,它将突出显示解决方案资源管理器中的文件。
Alt+Shift+L
Since you are using Resharper you can use its navigation instead of Visual Studio's. In this example you are looking for Default.aspx
由于您使用的是Resharper,因此可以使用其导航而不是Visual Studio。在此示例中,您正在查找Default.aspx
Ctrl+Shift+N
That shortcut will bring up its file search screen. Type "Def" and pick the one based on which folder you want.
该快捷方式将打开其文件搜索屏幕。键入“Def”并根据所需的文件夹选择一个。
#2
Try right-clicking the empty space next to a tab just above the code window. You will see some options for a new "tab group", and you can choose horizontal or vertical.
尝试右键单击代码窗口正上方选项卡旁边的空白区域。您将看到一个新的“选项卡组”的一些选项,您可以选择水平或垂直。
If you have enough monitor space, you should be able to keep your similarly named files in different areas.
如果您有足够的监视空间,您应该能够将类似命名的文件保存在不同的区域中。
Good luck!
#3
If possible at all, avoid having duplicate names. Not only that navigation might be confusing, it might get even worse.
如果可能,请避免使用重复的名称。不仅导航可能会令人困惑,而且可能会变得更糟。
I have experienced rather strange behavior with duplicate file names within the same solution, both with Visual Studio (e.g. when debugging) and especially with third party tools, which were not able to distinguish between the files.
我在同一个解决方案中遇到了重复文件名的相当奇怪的行为,包括Visual Studio(例如调试时),特别是第三方工具,它们无法区分文件。
It seemed to me that this is especially a problem with resource file names and project names.
在我看来,这尤其是资源文件名和项目名称的问题。
#4
If you hit Ctrl+Tab it will bring open a document list with preview and the full file path.
如果按Ctrl + Tab,它将打开包含预览和完整文件路径的文档列表。
#1
I mouse over the tab and it shows me the file directory.
我将鼠标悬停在选项卡上,它显示了文件目录。
Also since you are using Resharper you can use this keyboard shortcut and it will highlight the file in solution explorer.
此外,由于您使用Resharper,您可以使用此键盘快捷键,它将突出显示解决方案资源管理器中的文件。
Alt+Shift+L
Since you are using Resharper you can use its navigation instead of Visual Studio's. In this example you are looking for Default.aspx
由于您使用的是Resharper,因此可以使用其导航而不是Visual Studio。在此示例中,您正在查找Default.aspx
Ctrl+Shift+N
That shortcut will bring up its file search screen. Type "Def" and pick the one based on which folder you want.
该快捷方式将打开其文件搜索屏幕。键入“Def”并根据所需的文件夹选择一个。
#2
Try right-clicking the empty space next to a tab just above the code window. You will see some options for a new "tab group", and you can choose horizontal or vertical.
尝试右键单击代码窗口正上方选项卡旁边的空白区域。您将看到一个新的“选项卡组”的一些选项,您可以选择水平或垂直。
If you have enough monitor space, you should be able to keep your similarly named files in different areas.
如果您有足够的监视空间,您应该能够将类似命名的文件保存在不同的区域中。
Good luck!
#3
If possible at all, avoid having duplicate names. Not only that navigation might be confusing, it might get even worse.
如果可能,请避免使用重复的名称。不仅导航可能会令人困惑,而且可能会变得更糟。
I have experienced rather strange behavior with duplicate file names within the same solution, both with Visual Studio (e.g. when debugging) and especially with third party tools, which were not able to distinguish between the files.
我在同一个解决方案中遇到了重复文件名的相当奇怪的行为,包括Visual Studio(例如调试时),特别是第三方工具,它们无法区分文件。
It seemed to me that this is especially a problem with resource file names and project names.
在我看来,这尤其是资源文件名和项目名称的问题。
#4
If you hit Ctrl+Tab it will bring open a document list with preview and the full file path.
如果按Ctrl + Tab,它将打开包含预览和完整文件路径的文档列表。