Today's silly question: How do I clear the immediate window?

  • Thread starter Thread starter StrandElectric
  • Start date Start date
S

StrandElectric

How do I clear the immediate window? I make a lot of use of debug.print but
cannot clear my immediate window to get a fresh start. I can edit/select
all but can't delete. Simple answers please!
 
Am 11.01.2011 19:24, schrieb StrandElectric:
How do I clear the immediate window? I make a lot of use of debug.print but
cannot clear my immediate window to get a fresh start. I can edit/select
all but can't delete. Simple answers please!

Right-click -> Delete all. I'm afraid, there is no "delete" icon like above the
output window. (I'm using VS 2008 Prof)
 
StrandElectric said:
How do I clear the immediate window? I make a lot of use of debug.print
but cannot clear my immediate window to get a fresh start. I can
edit/select all but can't delete. Simple answers please!

Replace all instances of Debug.Print with Console.WriteLine, which sends
it's output to both the Immediate window, and the Output window, but the
Output window auto clears every time you run your project.
 
How do I clear the immediate window? I make a lot of use of debug.print but
cannot clear my immediate window to get a fresh start.  I can edit/select
all but can't delete.  Simple answers please!

If you're dealing with immediate window in order to clean
programmatically, with untested, i found:

Sub ClearImmediateWindow()
Dim currentActiveWindow As Window = DTE.ActiveWindow
DTE.Windows.Item("{ECB7191A-597B-41F5-9843-03A4CF275DDE}").Activate()
'Immediate Window
DTE.ExecuteCommand("Edit.SelectAll")
DTE.ExecuteCommand("Edit.ClearAll")
currentActiveWindow.Activate()
End Sub

on:
http://www.codeguru.com/forum/showthread.php?t=393558

...reported as worked.

HTH,

Onur
 
Armin Zingler said:
Am 11.01.2011 19:24, schrieb StrandElectric:

Right-click -> Delete all. I'm afraid, there is no "delete" icon like
above the
output window. (I'm using VS 2008 Prof)

Thanks. Found it!
 
Back
Top