Favourites
Ctrl+Tab – move between open tabs (VS)
Ctrl+Shift+B or F6 – build (or Alt+B+U to build unit).. or Shift+F6 for Build.BuildSelection
Alt+V+P – solution explorer (VS)
Ctrl+\ + M – Team Explorer
Ctrl+W+E – Compile Error window
Ctrl+U+D – Run unit tests in debug mode
Ctrl+U+R – Run unit tests
Ctrl+Alt+T – View Unit Test sessions window
F12 – Go to definition
F5 – compile and run in debug
Ctrl+Shift+Alt Up - moves a line / method up
Alt+Enter – show suggestion
Ctrl+M+M – collapse/expand method (VS)
Ctrl+M+O – collapse all methods (VS)
Ctrl+M+P – expand all methods(VS)
Ctrl+K+D – reformat code (VS)… related is Tools, Options, Text Editor, C#, Formatting… untick top 2 to get rid of annoying linq formatting
Ctrl+Shift+/ - block comment – can then block comment around other line comments in XAML
Ctrl+, – recently opened files
Ctrl+Shift+, – View recent edits
Ctrl+Space – Symbol Code completion.. eg FirstOr then it fills in Default
Ctrl+Shift+Space – show parameters of method
Ctrl+K+C – comment
Ctrl+K+U – uncomment
Ctrl+R+R – rename
Ctrl+H – replace (VS) then Alt+R to replace 1 by 1
Shift+Alt+Enter – Full screen (VS)
Ctrl+- - Go to last cursor position (VS)
Alt+E+I+O+A – Remove and sort unused usings (VS)
Ctrl+T – search for type
Shift+Alt+C – create class (VS)
Alt+L – delete line (VS)
Playing
Ctrl+K+K – bookmark
Ctrl+K+N – next bookmark
Ctrl+K+P – previous
Ctrl+K+L – clear bookmarks
Ctrl+W+B – View bookmark window
Alt + PgDn – Go to next highlight eg error
Ctrl+Alt+D – TODO explore/warning
Ctrl+Alt+U – Unit test explorer
Ctrl+Alt-T – Unit test sessions
Ctrl+Alt+F – File structure (same as Alt+V+P)
TFS
Ctrl+0+P – Pending changes
Ctrl+0+W – Work items
Ctrl+0+H – Home
Show stuff
Ctrl+Shift+R – Refactor this
Alt-Ins – Generate code
Ctrl+Alt+Space – Smart Code completion…shows only the important methods..not inherited?
Commenting
Ctrl+Alt+/ – line comment
Moving and moving in Code
Ctrl+D – duplicate a line or selected text
Ctrl+Shift+Backspace – back to last point where were editing (same as ctrl –)
Ctrl+Shift+[ - Select Containing declaration.. ie selects whole method really easily
Expanding / Collapsing
Ctrl+M+O – Collapse all
Ctrl+M+L – Expand all
Ctrl+M+M – current section
Searching
Ctrl+T – go to Type
Ctrl+Shift+T - go to File
Shift+Alt+F11 – Highlight occurrences
Ctrl+Alt+PgUp / PgDn – navigate between highlighted occurrences
Alt+PgUp – Resharper warnings go between
* Alt-H – replace.. then Alt+R to replace next
Ctrl+, – Recent Files
Running Tests
Ctrl+R+T – run tests in debug (VS) – much prefer R# test runner as faster
Ctrl+R+T – MS Test runner in debug mode
Deleting
Ctrl L – Delete a line
Selecting
Ctrl+Shift+Right Arrow – highlight block of code
PlugIns
http://gjxaml.codeplex.com/
Code Cleanup
Ctrl+E+C – Code cleanup