views:

99

answers:

2

Do you know a way to add some code that, during debug, programmatically clear the Output Window in Visual Studio?

Or do you know some fast alternative like a key shortcut?

A: 

the output window feature is documented here, some guys are talking about how to access the output window here, so i think you can clear it progamatically.

metro
the first shows some example how to interact with the output window, but I think I need to create a plugin myself to do it; the second link is based on CodeRush, I will look into it. In the meanwhile if you know a simpler way...
marco.ragogna
+3  A: 

Macro:

Sub ClearOutputWindow()
    DTE.ExecuteCommand("Edit.ClearOutputWindow")
End Sub

Simply assign a hotkey to this.

Edit: additional possibilities

mafutrct
thank you, i did a macro as you described
marco.ragogna