Is there a keyboard shortcut in Visual Studio (aside from CTRL+TAB and selection) that would take me from inside a document directly into the solution explorer? I don't want to customize any shortcuts or change any default behavior.
在Visual Studio中是否有一个键盘快捷键(除了CTRL+TAB和selection),它会直接把我从文档中带到解决方案资源管理器中?我不希望自定义任何快捷方式或更改任何默认行为。
11 个解决方案
#1
196
CTRL+ALT+L
CTRL + ALT + L
should shift focus to the Solution Explorer.
应该将焦点转移到解决方案资源管理器。
For visual studio 2012 use:
visual studio 2012使用:
CTRL+[ + S this selects your current document in the solution explorer.
在解决方案资源管理器中选择当前文档。
#2
39
When using VS 2012 with the Visual C# 2005 keyboard mapping scheme:
使用VS 2012与Visual c# 2005键盘映射方案:
CTRL+W, S
CTRL + W S
I find this easier to memorize: All shortcuts beginning with CTRL+W are for opening or navigating to W indows:
我发现这更容易记住:从CTRL+W开始的所有快捷键都是打开或导航到W indows:
- CTRL+W, S: S olution Explorer
- CTRL+W, S: olution浏览器。
- CTRL+W, E: E rror list
- CTRL+W, E: rror列表。
- CTRL+W, R: R esourceview
- CTRL + W,R,R esourceview
- CTRL+W, A: Command window (A ction ...)
- CTRL+W, A:命令窗口(功能…)
- CTRL+W, T: T askview
- CTRL + W T:T askview
- CTRL+W, Q: Find Symbol Results
- CTRL+W, Q:查找符号结果。
- CTRL+W, X: Toolbo x
- CTRL + W X:Toolbo X
- CTRL+W, C: C lassview
- CTRL + W C:C lassview
- CTRL+W, P: P roperties
- CTRL + W P:P roperties
- CTRL+W, B: B ookmarks
- CTRL + W,ookmarks B:B
- ...
- …
#3
20
In Visual Studio 2012 you can now use CTRL+; as this is the default keyboard shortcut for the solution explorer search box.
在Visual Studio 2012中,现在可以使用CTRL+;因为这是解决方案资源管理器搜索框的默认键盘快捷方式。
#4
11
On my windows 7 machine : Ctrl+ALT+L locks the computer.
在我的windows 7机器上:Ctrl+ALT+L锁定电脑。
For me : Shift+ALT+L works. (This could also be a resharper configuration)
对我来说:Shift+ALT+L。(这也可能是一个resharper配置)
#5
9
The default keyboard shortcut for opening/jumping to Solution Explorer is Ctrl + Alt + L.
打开/跳转到解决方案资源管理器的默认键盘快捷键是Ctrl + Alt + L。
#6
7
- shortcut ctrl [, S will focus current open file/document in solution explorer.
- 快捷键ctrl [, S将当前打开文件/文档在解决方案资源管理器中。
- setting checkbox to true in "Track active in Solution Explorer" will automatically focus current open file/document in solution explorer (Tools->Options->Projects and solutions->General->"Track Active Item in Solution Explorer"=true
- 在“解决方案资源管理器”中,将复选框设置为true会自动将当前打开的文件/文档集中到解决方案资源管理器中(工具->选项->项目和解决方案->General->“在解决方案资源管理器中跟踪活动项目”=true。
#7
5
Extended above : command name for sync tab with solution explorer is "SolutionExplorer.SyncWithActiveDocument"
上面的扩展名:与解决方案资源管理器的sync选项卡的命令名是“SolutionExplorer.SyncWithActiveDocument”。
#8
3
ctrl + [ + S.
ctrl + S。
This shortcut will highlight the currently opened document in solution explorer.
此快捷方式将突出当前在解决方案资源管理器中打开的文档。
#9
2
For AZERTY keyboards like mine, the default shortcut is Ctrl+), Ctrl+S
对于像我这样的AZERTY键盘,默认的快捷键是Ctrl+), Ctrl+S。
#10
2
I had this problem on a new machine build with VS 2013 and R# 8.2.
我在一个新机器上遇到了这个问题,在VS 2013和R# 8.2中。
Keyboard option Resharper.Resharper_LocateInSolutionExplorer
was correctly set to Shift+Alt+L
, but it seemed to be only opening a parent folder and not selecting the actual file. As recommended in another post I enabled "Track active in Solution Explorer"
in the VS Options.
Resharper键盘选项。Resharper_LocateInSolutionExplorer被正确设置为Shift+Alt+L,但它似乎只是打开一个父文件夹,而不是选择实际的文件。正如我在另一篇文章中所推荐的,我在VS选项中启用了“在解决方案资源管理器中的跟踪活动”。
This didn't fix the problem and wasn't what I want because in very large solutions I don't want the solution explorer jumping around to the current file in use. I disabled the Track feature and restarted VS, the LocateInSolutionExplorer
feature then started working correctly. Some sort of shortcut precedence issue?
这并没有解决问题,也不是我想要的,因为在很大的解决方案中,我不希望解决方案资源管理器跳转到当前文件中使用。我禁用了跟踪功能并重启了VS, LocateInSolutionExplorer功能开始正常工作。某种捷径优先问题?
#11
0
We just upgraded from VS2013 to VS2017, and I had to go looking for how to auto-select the active tab in the Solution Explorer. I often have to look for a document by finding a text-string from a screen, and love to have it select the document so I can see where it is.
我们刚刚从VS2013升级到VS2017,我必须寻找如何在解决方案资源管理器中自动选择active选项卡。我经常需要通过从屏幕找到一个文本字符串来查找文档,并且喜欢让它选择文档,这样我就可以看到它在哪里了。
Tracking the active document has been default behavior for a long time. VS2017 brought over ALL my other preferences, but not this one. Glad I found this thread--Thank you.
跟踪活动文档已经是很长时间的默认行为。VS2017带来了我所有其他的偏好,但不是这个。很高兴找到这条线——谢谢。
#1
196
CTRL+ALT+L
CTRL + ALT + L
should shift focus to the Solution Explorer.
应该将焦点转移到解决方案资源管理器。
For visual studio 2012 use:
visual studio 2012使用:
CTRL+[ + S this selects your current document in the solution explorer.
在解决方案资源管理器中选择当前文档。
#2
39
When using VS 2012 with the Visual C# 2005 keyboard mapping scheme:
使用VS 2012与Visual c# 2005键盘映射方案:
CTRL+W, S
CTRL + W S
I find this easier to memorize: All shortcuts beginning with CTRL+W are for opening or navigating to W indows:
我发现这更容易记住:从CTRL+W开始的所有快捷键都是打开或导航到W indows:
- CTRL+W, S: S olution Explorer
- CTRL+W, S: olution浏览器。
- CTRL+W, E: E rror list
- CTRL+W, E: rror列表。
- CTRL+W, R: R esourceview
- CTRL + W,R,R esourceview
- CTRL+W, A: Command window (A ction ...)
- CTRL+W, A:命令窗口(功能…)
- CTRL+W, T: T askview
- CTRL + W T:T askview
- CTRL+W, Q: Find Symbol Results
- CTRL+W, Q:查找符号结果。
- CTRL+W, X: Toolbo x
- CTRL + W X:Toolbo X
- CTRL+W, C: C lassview
- CTRL + W C:C lassview
- CTRL+W, P: P roperties
- CTRL + W P:P roperties
- CTRL+W, B: B ookmarks
- CTRL + W,ookmarks B:B
- ...
- …
#3
20
In Visual Studio 2012 you can now use CTRL+; as this is the default keyboard shortcut for the solution explorer search box.
在Visual Studio 2012中,现在可以使用CTRL+;因为这是解决方案资源管理器搜索框的默认键盘快捷方式。
#4
11
On my windows 7 machine : Ctrl+ALT+L locks the computer.
在我的windows 7机器上:Ctrl+ALT+L锁定电脑。
For me : Shift+ALT+L works. (This could also be a resharper configuration)
对我来说:Shift+ALT+L。(这也可能是一个resharper配置)
#5
9
The default keyboard shortcut for opening/jumping to Solution Explorer is Ctrl + Alt + L.
打开/跳转到解决方案资源管理器的默认键盘快捷键是Ctrl + Alt + L。
#6
7
- shortcut ctrl [, S will focus current open file/document in solution explorer.
- 快捷键ctrl [, S将当前打开文件/文档在解决方案资源管理器中。
- setting checkbox to true in "Track active in Solution Explorer" will automatically focus current open file/document in solution explorer (Tools->Options->Projects and solutions->General->"Track Active Item in Solution Explorer"=true
- 在“解决方案资源管理器”中,将复选框设置为true会自动将当前打开的文件/文档集中到解决方案资源管理器中(工具->选项->项目和解决方案->General->“在解决方案资源管理器中跟踪活动项目”=true。
#7
5
Extended above : command name for sync tab with solution explorer is "SolutionExplorer.SyncWithActiveDocument"
上面的扩展名:与解决方案资源管理器的sync选项卡的命令名是“SolutionExplorer.SyncWithActiveDocument”。
#8
3
ctrl + [ + S.
ctrl + S。
This shortcut will highlight the currently opened document in solution explorer.
此快捷方式将突出当前在解决方案资源管理器中打开的文档。
#9
2
For AZERTY keyboards like mine, the default shortcut is Ctrl+), Ctrl+S
对于像我这样的AZERTY键盘,默认的快捷键是Ctrl+), Ctrl+S。
#10
2
I had this problem on a new machine build with VS 2013 and R# 8.2.
我在一个新机器上遇到了这个问题,在VS 2013和R# 8.2中。
Keyboard option Resharper.Resharper_LocateInSolutionExplorer
was correctly set to Shift+Alt+L
, but it seemed to be only opening a parent folder and not selecting the actual file. As recommended in another post I enabled "Track active in Solution Explorer"
in the VS Options.
Resharper键盘选项。Resharper_LocateInSolutionExplorer被正确设置为Shift+Alt+L,但它似乎只是打开一个父文件夹,而不是选择实际的文件。正如我在另一篇文章中所推荐的,我在VS选项中启用了“在解决方案资源管理器中的跟踪活动”。
This didn't fix the problem and wasn't what I want because in very large solutions I don't want the solution explorer jumping around to the current file in use. I disabled the Track feature and restarted VS, the LocateInSolutionExplorer
feature then started working correctly. Some sort of shortcut precedence issue?
这并没有解决问题,也不是我想要的,因为在很大的解决方案中,我不希望解决方案资源管理器跳转到当前文件中使用。我禁用了跟踪功能并重启了VS, LocateInSolutionExplorer功能开始正常工作。某种捷径优先问题?
#11
0
We just upgraded from VS2013 to VS2017, and I had to go looking for how to auto-select the active tab in the Solution Explorer. I often have to look for a document by finding a text-string from a screen, and love to have it select the document so I can see where it is.
我们刚刚从VS2013升级到VS2017,我必须寻找如何在解决方案资源管理器中自动选择active选项卡。我经常需要通过从屏幕找到一个文本字符串来查找文档,并且喜欢让它选择文档,这样我就可以看到它在哪里了。
Tracking the active document has been default behavior for a long time. VS2017 brought over ALL my other preferences, but not this one. Glad I found this thread--Thank you.
跟踪活动文档已经是很长时间的默认行为。VS2017带来了我所有其他的偏好,但不是这个。很高兴找到这条线——谢谢。