Professional Documents
Culture Documents
this is a list of 10 great shortcuts me and my co workers use frequently, we thought you all
should know too. Here they are:
1. 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
Or implement interfaces
2. LTCTRL This one will open the Exceptions window, which allows you to
tell Visual Studio to halt at specific exceptions, halt on all exceptions or selecet some
exceptions to ignore.
^. CTRL
CRTL
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#« This one is my favorite.
4. T 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.
5. CTRL
CTRL These two are for commenting selected
text (the "c" options) and uncommenting selected text (the "u" option).
6. LT TR this little shortcut will open up the Properties window
7. CTRL This one opens up the code snippets dialogue within the code
If you want to create code snippets you should read my post about snippy the code
snippets editor.
Î. c! 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.
9. " 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.
10.CTRLLT# This one will open the Quick watch window while you debug
That¶s all I have for now. If you know of more cool shortcuts we missed, please comment.
Amit
CTRL -
and
CTRL SHIFT -
Nice list.
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 + ALT + P (attach to process) is very useful when you¶re debugging web sites,
windows services, etc.
The 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.
I generally can get almost anything done with CTX+key or CTX then a quick combo of
down and right arrows.
You can also open properties window just by pressing F4. I like it more than Alt+Enter.
A year ago I was using Ctrl+K,Ctrl+X to insert a snippet, but I have understood that the
easiest way to do it is to type snippet name and press ³Tab´ afterwards.
I suggested Ctrl+A then DEL to my « less than able colleagues « didn¶t go down well!
Ctrl + space
while coding lets VS finish for you or open intellisense if what you¶re type¶d is to
ambiguos
³string rediculouslyLongName;
ret´ then Ctrl + Space gives you
³string rediculouslyLongName;
rediculouslyLongName´
11..
Said on Apr 20, 200Î :
I use FÎ and shift+FÎ to cycle through search results. It¶s a gem for me.
I think, if anything, the VS team should add an option in Visual Studio to annotate all
Menu items with their corresponding shortcuts.
You should probably note that some of these are ReSharper only shortcuts. Maybe I
missed that somewhere. Just a thought.
Dylan Vester,
Which shortcuts do you think are ReSharper only shortcuts? I don¶t own ReSharper. I¶ve
been using the majority of these shortcuts for years. The few that were new to me
worked.
Non of them are resharper shortcuts. I know that because I dont use resharper as it takes
more resources than Windows Vista :). I am more of a Visual Assist kind of guy.
Amit
Anyone know shortcut view all of Methods in class (same as Ctrl + o in eclipse) ?
ctrl-c without selecting anything copies a row (ehh, ctrl-v to paste it)
Anyone know how to do an entire block? For example highlight all ^ rows below and
generate the methods in one shot instead of select and generating each one?
public string test1;
public string test2;
public string test^;
19.
Said on Feb 16, 2009 :
ctrl + ]
moves you to the beginning or end of a snippet, [], {}, etc.
Hello,
http://www.adersoftware.com/index.cfm?page=vsPropertyGenerator2
I find it useful, it would have been perfect if the tool would be released as open source.
Hello,
Ctrl+Tab flips forward and backwards, between the last two accessed files.
´ ^. 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#««´
is for older version(s). For VS 200Î, it is CTRL + ³E´ + ³F´ and CRTL + ³E´ + ³D´.
2^.,+0&
* Said on Jun 9, 2009 :
Ctrl+Shift+H is equivalent to Ctrl+H and does very smart job for find and replace.
Further, first do Ctrl+F for find and then just press F^ for next match. Easy!
A number of such short keys have made life easier. These ones are also worth looking at:
http://dotnetspidor.blogspot.com/2009/06/22-visual-studio-short-keys-and-6-short.html
Happy Programming!
Ctrl + Shift + F7 «.highlights the usages of any variable,methods «Find it very useful
I personally like the following combo to clean up all my code and then go looking for a
certain code-block:
Visual Studio: Developer tools for developers who don¶t realize Linux is better for
software development.
This morning I¶ve discovered these two (I¶ve tested only C#)
Alt+UpArrow
Alt+DownArrow
Thanks all for putting all the shortcuts at one place. It was really helpful.
29.& Said on Jan 1Î, 2010 :
e.g
Dark
Wadia
e.g
Dark
Wadia
Nice article!!
Danilo
I don¶t work for resharper but I use it at work and the new version takes a TON less
resources and is a lot faster than previous versions.
Write objectname then event name then write plus sign(+) then equals sign(=) then press
tab key two times.
This will generate the event code for the required object event.
Welcome
Ctr + Shift + u - uppercase the word
Ctr + u - lowercase
Ctr + w - select whole word under cursor
Is there a short cut (hot key) to collapse all items in solution explorer.
Anyone know short cut of creating dafinatio of written subroutine or function. like i type
the name of subroutine which is still not defined.
Thanx