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

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!
 
A

Armin Zingler

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)
 
N

Nobody

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.
 
O

Onur Güzel

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
 
S

StrandElectric

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top