Anil Sharma

just for code

Visual Studio Shortcuts

  • CTRL + “.”: This is actually a shortcut for a shortcut. it is the same as CTRL + SHIFT + F10 which opens the smart tag window and allows you to add Using statements.
  • ALT + CTRL + “e”: This one will open the Exceptions window, which allows you to tell Visual Studio to halt at specific exceptions.
  • CTRL + “k” + “f” and CRTL + “k” + “d”: these two will format the code in the window to be nicely indented. using “d” will format all the document while using “f” will format only selected text. The formatting is for all types of documents, HTML, Xaml, XML, C#…
  • SHIFT + Del:This one will cut the entire row from the document and past it to the clipboard. No need to select the row, just put the marker there and click SHIFT + Del and it is gone.
  • CTRL + “k” + “c” and CTRL + “k” + “u”:These two are for commenting selected text (the “c” options) and uncommenting selected text (the “u” option).
  • ALT + ENTER: this little shortcut will open up the Properties window
  • CTRL + “k” + “s”:This one opens up the code snippets dialogue within the code.
  • F12: I think you all know this but still F12 is the shortcut for the “Go to definition” command which will take you to the definition of the object your marker is currently on.
  • F9: Another one i think you all know, clicking on F9 will add a breakpoint to the code line your marker is currently at. Clicking F9 again will remove this breakpoint from that line.
  • CTRL + ALT + “q”: This one will open the Quick watch window while
  • CTRL –
    and
    CTRL SHIFT –It moves the editing cursor to the last/next position
    this is great if you decide to edit something somewhere else and you want to go back to that last method you were editing. CTRL – will save you so much time!
  • Alt + Enter is also a general Windows shortcut for accessing properties of files, drives, shortcuts, etc. It is a nice keystroke to keep in mind.
  • Shift + Alt + Enter (FullScreen mode) is a must know! It helps you to get rid of all the properties, toolbar and other [obstrusive] windows that don’t let you see the code. Hit it a second time and the windows are back.
  • CTRL+M+M : Expanding / Collapsing code blocks, e.g. regions/methods.
    CTRL + ALT + P (attach to process) is very useful when you’re debugging web sites, windows services, etc.
  • CTRL + R + R (rename) is great for refactoring, particularly if you have Reshaper installed
  • Ctrl+Shift+B — Build solution
    Ctrl+J — Intellisense, list members
    Ctrl+Shift+Space — Intellisense, list parameter infoThe list members shortcut is handy. Before I started using this a lot, I would sometimes type ‘this.’ to get a list of members. The parameter info is helpful for seeing information about parameters you already typed in.
  • Lot of items can be accessed from the ‘Context Menu Key’ (assuming your keyboards have that key…the one that looks like a little menu)…CTX+Q – Quick Watch
    CTX+D – Definition
    CTX – same as CTRL+. aboveI generally can get almost anything done with CTX+key or CTX then a quick combo of down and right arrows.

Source : Internet

December 17, 2014 Posted by | Developement, visual studio | , , , , , , , , , , , , | Leave a comment