Visual Studio - 如何摆脱输出窗口?
我刚刚开始使用 VS2005,大部分时间我都坚持使用 VS6,因为到目前为止它已经完成了我想要的一切。
我喜欢最大化可用空间并消除混乱,因此我只想查看源窗口和项目中的文件列表(此处奇怪地命名为“解决方案资源管理器”)。因此,当输出窗口出现时,我希望能够在完成后快速将其删除,并且只需按一次按键而不是鼠标即可完成此操作。我曾经能够在 VS6 中很容易地做到这一点,因为“视图”功能是一个切换,但在 VS2003 和后来的版本中,这似乎只是“打开”视图 - 这似乎是愚蠢地删除了一个有用的功能。
那么有没有人有办法使用单个键在输出窗口(以及可能出现的许多窗口中的任何其他窗口)上执行切换功能?我知道有一个“closetoolwindow”功能,但这必须是一个不同的键,并且只有在焦点位于该窗口时才有效,所以这很痛苦。
I've just started using VS2005, mostly I've stuck to VS6 as up till now it did everything I wanted.
I like to maximize the space available and remove clutter so I only want to see the source window and files-in-project list (oddly named "solution explorer" here). So when the output window appears, I want to be able to quickly remove it when I've finished with it, and to do so with a single keystroke and NOT the mouse. I used to be able to do this quite easily in VS6 because the "view" function was a toggle, but it seems in VS2003 and later this is a view "on" only - which seems a stupid removal of a useful function.
So has anyone got a way to use a single key to perform a toggle function on the output window (and any other of the many windows that might come up)? I know there's a "closetoolwindow" function but this has to be a different key and only works if the focus is in that window, so it's a pain.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
您可以使用 Shift + Esc 关闭任何工具窗口。要打开工具窗口,您可以使用 Ctrl+W 等快捷键...
You can use Shift + Esc to close any tool window. to bring a tool window you can use the shortcuts like Ctrl+W ...
遗憾的是在 2013 年,转义键无法关闭输出窗口(它实际上切换回代码窗口,我认为这也很有用)。作为键盘狂,我必须: Ctrl+Alt+O 聚焦于工具窗口,然后 shift+ esc 将其关闭。
Sadly in 2013 escape key can't close the output window (It actually switch back to code window, which I think is also useful). As a keyboardholic, I have to: Ctrl+Alt+O to focus on tool window, then shift+esc to close it.
工具->宏->宏IDE
右键单击MyMacros,然后选择创建新项目并复制并粘贴此内容:
然后关闭它,转到工具->;选项->键盘并将其绑定到您想要的键。
编辑(查看回复)
根据要求,这将切换它:
Tools -> Macros -> Macros IDE
Right click MyMacros, then select Make new item and copy&paste this:
Then close it, go to tools -> options -> keyboard and bind it to the key you want.
Edit (see replies)
As requested, this will toggle it:
单击 X 或图钉暂时将其删除。
我在 VS 中使用键盘快捷键 Alt-shift-enter 将其最大化到整个窗口(我不知道这在 VS05 中是否肯定可用,但在 VS08 中是可用的)。
这将使您的代码窗口全屏并删除所有内容,直到您再次按下组合键。
Click on the X or the pushpin to get rid of it for the time being.
I use the keyboard shortcut Alt-shift-enter in VS to max it out to the entire window (I don't know if this is definitely available in VS05, but it is in VS08).
That will make your code window full-screen and get rid of everything until you hit the key combo again.
不是你问题的真正答案,但这就是我所做的:
记住浮动窗口(如输出窗口、解决方案资源管理器等)是可停靠的。
因此,我将感兴趣的窗口(输出窗口、属性窗口、解决方案资源管理器)停靠在一起,然后将它们移动到第二个屏幕。
这意味着,在我的主屏幕上,我只有代码视图,而在我的第二个屏幕上,我有输出窗口、解决方案资源管理器等......
Not a real answer on your question, but this is what I have done:
remember that the floating windows (like the outputwindow, solution explorer, etc...) are dockable.
So, I've docked the windows that are of interest (output window, property window, solution explorer) toghether, and then I moved them to my second screen.
This means, that, on my main screen, I only have the code-view, and on my second screen, I have the outputwindow, solution explorer, etc...
不幸的是,我最终不得不从 VS6 切换到 VS 2010,因为 VS6 不再在 Windows 7 上运行。这让我发疯,我不明白人们如何使用这个垃圾界面,我花了一个小时进行定制以使其接近 VS6 时,仍然到处都是无价值信息的窗口和选项卡,并且带有边框的屏幕上到处都浪费了 GUI 空间。我还对编辑源文件、编译它和运行我的游戏的标准工作流程做了一些基准测试,这个 IDE 真是一个遗憾的 POS,从 2006 系统升级到快了近 4 倍的 CPU 后,更快的 SSD,以及三倍的内存,在我的测试中,VS 2010 平均慢了 47%!
I unfortunately finally had to switch to VS 2010 from VS6 because VS6 doesn't work any more on Windows 7. And this was driving me crazy, I don't understand how people can work with this crap interface, it took me an hour of customizing to get it close to VS6 and there are still windows and tabs of worthless info everywhere and GUI space is wasted all over the screen with borders. I have also done some benchmarking on my standard work flow of editing a source file, compiling it, and running my game, what a sorry POS this IDE is, after upgrading from a 2006 system to a CPU that is nearly 4 times faster, a faster SSD, and triple the memory, VS 2010 is an average of 47% slower in my tests!