Clear command window?

T

Tim Zych

Is there keystroke combination that will clear the command window in Visual
Studio.Net?

Or, is there a way for me to clear it in vb.net code, prior to my code
running?

Thanks.
 
T

The Grim Reaper

Right click, select appropriate item from the menu...
_________________________
The Grimch
 
T

Tim Zych

I know about that one. Very time consuming and annoying. I'm looking for
something better. Like in VB6 or VBA where the Delete key does the trick.
 
T

The Grim Reaper

Context menu key, up cursor, enter.
(that's only 3!!)
_________________________________
The Grimch
 
T

Tim Zych

Thanks...but...context menu key?

What is that?


The Grim Reaper said:
Context menu key, up cursor, enter.
(that's only 3!!)
_________________________________
The Grimch
 
T

Tim Zych

I found one possible way.

While the cursor is not selecting anything:
:
Ctrl + C
Ctrl + A
Ctrl + V

2 steps after the empty string is copied to the clipboard. Otherwise 3.
 
M

Mythran

Tim Zych said:
Is there keystroke combination that will clear the command window in
Visual
Studio.Net?

Or, is there a way for me to clear it in vb.net code, prior to my code
running?

Thanks.
Edit.ClearAll is the command to use. You can bind this command to a
keyboard shortcut by going to Tools->Options->Environment->Keyboard and
type in the 'Show commands containing:' textbox: 'Edit.ClearAll' w/o the
quotes. Select the command and in the 'Press shortcut key(s):' box, press
the keyboard shortcut you wish to associate with clearing the
window...click Ok, and try it out :)

Please note, this command is available in .Net 2003, and I don't have 2005
installed to test. The instructions above are also for 2003 :( Even though
this is for 2003, it *should* still be available in .Net 2005...g'luck!

HTH,
Mythran
 
T

Tim Zych

Wow. That looks very promising.

I assigned a shortcut key to it, but when I tried it during runtime, it
didn't execute.

It seems to work only during design time.

Thanks. That's good stuff to know.
 
A

aaron.kempf

yeah this is probably the ONE FEATURE THAT WAS MISSING IN VB6; AND THEY
COULDN'T AFFORD TO FIX IT IN THREE NEW VERSIONS OF VISUAL STUDIO?

eat a dick, microsoft

-Aaron
 
S

Stephany Young

Context menu key + l
(that's only 2!!)


The Grim Reaper said:
Context menu key, up cursor, enter.
(that's only 3!!)
_________________________________
The Grimch
 
S

Stephany Young

The context menu key has a glyph on it that looks like a context menu with a
mouse pointer. On my keyboards it is directly to the left of the right Ctrl
key.
 
S

Stephany Young

Check out the Clear method of the CommandWindow object in the Visual Studio
automation model.

F1 is your friend!!!!!!
 
A

aaron.kempf

why can't people just call it the 'right-click key'

the 'context menu' shit it's not the context menu its' the right-click
menu

-Aaron
 
T

The Grim Reaper

Why can't you keep your dirty mouth out of other people's conversations, you
useless troll??
 
A

aaron.kempf

it's the single feature I wish that VB6 had.

I'll use my dirty mouth where I want.

MS Killed the world's popular language; they personally destroyed my
programming career.

I could give a shit.
I'll still use VB until the make VB10 and it will be 100% backwards
comptabile with VB.com

-Aaron
 
R

RobinS

I thought you said you get 8-10 job offers a week. So how is
that a destroyed career?

Robin S.
--------------------------------------------------
 
C

C-Services Holland b.v.

Tim said:
I found one possible way.

While the cursor is not selecting anything:
:
Ctrl + C
Ctrl + A
Ctrl + V

2 steps after the empty string is copied to the clipboard. Otherwise 3.

Then why not simply do
CTRL + A
DEL
 

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