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.
You can use Shift + Esc to close any tool window. to bring a tool window you can use the shortcuts like Ctrl+W ...
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.
Tools -> Macros -> Macros IDE
Right click MyMacros, then select Make new item and copy&paste this:
Option Strict Off
Option Explicit Off
Imports System
Imports EnvDTE
Imports EnvDTE80
Imports EnvDTE90
Imports System.Diagnostics
Public Module YourModuleName
Sub YourMacroName()
DTE.Windows.Item(Constants.vsWindowKindOutput).Close()
End Sub
End Module
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:
Option Strict Off
Option Explicit Off
Imports System
Imports EnvDTE
Imports EnvDTE80
Imports EnvDTE90
Imports System.Diagnostics
Public Module YourModuleName
Sub YourMacroName()
If (DTE.Windows.Item(Constants.vsWindowKindOutput).Visible) Then
DTE.Windows.Item(Constants.vsWindowKindOutput).Visible = False
Else
DTE.Windows.Item(Constants.vsWindowKindOutput).Visible = True
End If
End Sub
End Module
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...
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!
精彩评论