CtrlAltL可以在Visual Studio中打开“解决方案资源管理器”。
但是我无法使用相同的键盘快捷方式关闭它。
由于我经常需要这样做(以获得更多屏幕空间),所以如何使用键盘快捷方式关闭“解决方案资源管理器”呢?
CtrlAltL可以在Visual Studio中打开“解决方案资源管理器”。
但是我无法使用相同的键盘快捷方式关闭它。
由于我经常需要这样做(以获得更多屏幕空间),所以如何使用键盘快捷方式关闭“解决方案资源管理器”呢?
public class C : VisualCommanderExt.ICommand
{
public void Run(EnvDTE80.DTE2 DTE, Microsoft.VisualStudio.Shell.Package package)
{
var serviceProvider = package as System.IServiceProvider;
var shell = (Microsoft.VisualStudio.Shell.Interop.IVsUIShell)serviceProvider.GetService(typeof(Microsoft.VisualStudio.Shell.Interop.SVsUIShell));
var SolutionExplorer = new System.Guid(Microsoft.VisualStudio.Shell.Interop.ToolWindowGuids80.SolutionExplorer);
Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame frame;
shell.FindToolWindow(0, ref SolutionExplorer, out frame);
frame.Hide();
}
}
Shift
+ Esc
命令。 - Kellen Stuart