Tuesday, May 6, 2014

Visual Studio Command Window- A useful but unknown feature

All the Microsoft developers love visual studio as Integrated Development Environment(IDE) because it has build with lots and lots of features and developers are more productive then ever. But still there are lots of feature which are not popular among the developers. Visual studio command window is one of the best feature but still lots of developers are not aware about it. In this post we are going to learn about Visual Studio Command Window feature and we will see how we can increase productivity with this command window.

Command windows enables features of visual studio with commands. You can invoke command window via View-> Other windows –> Command window menu or via just pressing(Shortcut) Ctrl + Alt + A.


Visual Studio Command Window Menu

Once command window launch you can type any command and it also provide intellisense for the same.

Visual Studio Command Windows adding class demo

As you can see in above picture I have typed project command to add a new class once you hit enter it will open a add new class window.

add-new-class-commandwindow-visual-studio

Command window in debugging :


You can use various alias with command windows to display variable values and other information via debugging.

? -  Tells value of variable.
??- It launches a watch for for that variable.
Locals- Shows local window
Autos- Shows Auto Window
GoToLn- Set cursor to a specific line of program
bp- Set a break point on current line.

break point via command prompt in visual studio

Hope you like it. Stay tuned for more!!
Share:

2 comments:

  1. Hah, I didn't know that breakpoint stuff. Thanks.

    ReplyDelete
    Replies
    1. Yes I have also just came to know accidentally!! It is a very useful feature!!

      Delete

Your feedback is very important to me. Please provide your feedback via putting comments.

Support this blog-Buy me a coffee

Buy me a coffeeBuy me a coffee
Search This Blog
Subscribe to my blog

  

My Mvp Profile
Follow us on facebook
Blog Archive
Total Pageviews