- Editor Related
- CTRL + S = Save
- CTRL + SHIFT + S = Save all
- CTRL + C = Copy
- CTRL + X = Cut
- CTRL + V = Paste
- CTRL + K + CTRL + D = Format code (puts nice spaces and indentations where you like them)
- ALT + SHIFT + T = Swaps the current line with the line below it
- CTRL + SHIFT + B = Build baby build!
- CTRL + D + T = Debug unit test that is in context
- CTRL + R + T = Run unit test that is in context
- CTRL + K + CTRL + C = Comment out current line or selection of code
- CTRL + K + CTRL + U = Uncomment current line or selection of cote
- CTRL + . (that's a period) = Used to bring up context menu when you see the little underline or context menu icon show up after a code change. Mostly used during refactorings like changing a variable name or extracting a method from selected code.
- Context Menu Key (this is the key on my keyboard between right ALT and right CTRL) = Primarily used to access refactoring menus to create new functions or new variables.
- CTRL + F = Find
- CTRL + H = Replace
- CTRL + SHIFT + F = Find many (gives me a list of all instances)
- F3 = Move to next instance of matching text for a find text request
- SHIFT + F3 = Move to the previous instance of matching text for a find text request
- F9 = Toggle breakpoint
- F12 = Go to definition of the variable, method, or class
- CTRL + TAB = Switch between open files much like ALT + TAB and WINDOWS + TAB does in Windows.
- CTRL + F4 = Close currently focused code file
- CTRL + Spacebar = Give me intellisense and give it to me NOW!
- Debugger Related
- F5 = Run
- F9 = Toggle breakpoint
- F10 = Run current line of code only
- F11 = Step into function on current line of code
- SHIFT + F11 = Finish running current function and break in calling function
And one of my favorite quotes on shortcuts from the movie Road Trip:
I'm sure I'm missing a few, so please add others that you use in the comments.
No comments:
Post a Comment