Clearing the output window

J

JPS

How would you clear the output window using code (C#)? The Debug obj
does not seem to have a method to do this?
 
L

Larry Smith

I appreciate the response, but this example uses the EnvDTE
namespace(which I referenced), but how you use it is beyond me. Do
you have a simple code snippet that shows how to use the EnvDTE?

I normally do this using a Visual Studio (VS) "AddIn" where you get passed
the DTE2 object seen in my first post (at the given link). The DTE2 object
is the top-level object in the VS 2005 extensibility model which is just the
API for controlling the VS IDE. Using this object you can programatically do
just about anything you can normally do using the VS GUI itself. If you
don't want to start monkeying around with an "AddIn" however then see here
instead. The examples show you how to get hold of a DTE2 object. Also search
for macro examples if you want to experiment with that first (probably
easier to get a feel for things). Good luck.

http://msdn2.microsoft.com/en-us/library/68shb4dw(VS.80).aspx
 

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