Subscribe to Subscribers
Talk to Webmaster Tony John

Online Members

Pawan Awasthi
More...


Resources » Technical Tips » Visual Studio

Shortcuts to work with Visual Studio


Posted Date:     Category: Visual Studio    
Author: Member Level: Gold    Points: 15


There are many shortcuts in Visual studio, that makes work easier to the .NET programmers. Below are some of them for editing, intellisense, debugging, navigation between different views, windows, snippets and to build programs in a solution.



 


Editing


Collapses existing regions view of the types and members (CTRL + M + O)
Removes all outlining information in the document. (CTRL + M + P)
selected collapsed region are Toggled. (CTRL + M + M)
Inserts an element in the beginning of current line or currently selected lines. (CTRL + K + C)
Removes an element in the beginning of current line or currently selected lines. (CTRL + K + U)
Formats current document as per indentation and code formatting specified on the Formatting pane in Tools-> Options -> Text Editor -> C#. (CTRL + K + D)
Pastes Clipboard ring text to the cursor location in a file. Further using the shortcut key iterates Clipboard ring to the end. (CTRL + SHIFT + V)
Displays the smart tag menu options.(CTRL + .)

Intellisense


Displays the smart tag menu options. (CTRL + K + I)
Visible completion list becomes transparent. (CTRL)

Debugging


Launches Debug Mode (F5)
Launches without Debug Mode (CTRL + F5)
Sets or removes a breakpoint in current line (F9)
Removes all breakpoints (CTRL + SHIFT + F9)

Navigation


Displays references for the symbol selected (CTRL + K + R)
Moves the cursor to the matching brace in the source (CTRL + ])
Navigates to the code declaration of the selected symbol (F12)
Moves to the previously browsed code line (CTRL + -)
Displays the Code view of selected item (F7)
Switches to Design view from Source view (SHIFT + F7)
Switches to Source view from in Design view (SHIFT + F7)
Displays the Find and Replace dialog box (CTRL + F)
To get the Go To Line dialog box (CTRL + G)

Window


To display Class window (CTRL + W + C)
To display Class Definition window (CTRL + W + D)
To display the window Error List (CTRL + W + E)
To get the Object Browser (CTRL + W + J)
Displays Solution Explorer, with projects and files in the current solution (CTRL + W + S)
Displays the window Task List (CTRL + W + T)
Closes the tools window (SHIFT + ESC)
To close the current tab (CTRL + F4)
Displays IDE Navigator and selectes the first window (CTRL + TAB)

Snippets


Class (class | TAB | TAB)
Constructor (ctor | TAB | TAB)
Windows - Message Box (mbox | TAB |TAB)
Console – WriteLine (cw | TAB | TAB)
Property – (prop | TAB | TAB)
To get more snippets ( CTRL + K + X)

Build


To Build all projects in a solution (F6 / CTRL + SHIFT + B)
To Build the selected project and its dependencies (SHIFT + F6)





Did you like this resource? Share it with your friends and show your love!


Responses to "Shortcuts to work with Visual Studio"

No responses found. Be the first to respond...

Feedbacks      

Post Comment:




  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:   Sign In to fill automatically.
    Email: (Will not be published, but required to validate comment)



    Type the numbers and letters shown on the left.


    Next Resource: How to get shared assemblies out of the GAC
    Previous Resource: How to use mbox in C#?
    Return to Resources
    Post New Resource
    Category: Visual Studio


    Post resources and earn money!
     
    More Resources
    Popular Tags   Tag posting guidelines   Search Tags  
    Tips for program in .net  .  



    Follow us on Twitter: https://twitter.com/dotnetspider

    Active Members
    TodayLast 7 Daysmore...

    Awards & Gifts
    Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
    2005 - 2012 All Rights Reserved.
    .NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
    Articles, tutorials and all other content offered here is for educational purpose only.
    We are not associated with Microsoft or its partners.