Wednesday, December 12, 2012

Keyboard Shortcuts I Use In Visual Studio

Here are some keyboard shortcuts that I use in Visual Studio along with Resharper.  Edit their mappings in VS 2019 under Tools\Options\Environment\Keyboard

Ctrl+-  _Go to the previous spot in code (VS undocumented)
Ctrl++ _Go to the next spot in code (VS undocumented)
Ctrl+Shift+Alt+N _Go to Symbol (Resharper.Resharper_GotoSymbol) Finds any method by name anywhere in your loaded solution
Ctrl+Shift+B  _Build All
Ctrl+R+R  _Rename variable (Resharper.Resharper_Rename)
   Remove F2 shortcut
F12  _Go to declaration (Edit.GoToDeclaration)
   Remove from Resharper.Resharper_GotoNextHighlight
Shift+F12 _Find usages of this method (ReSharper.Resharper_FindUsages)
   Remove from Resharper_GotoPrevHighlight
Ctrl+G _Go to line number
Ctrl+Tab _Switch to another tab in the solution
Ctrl+ scroll wheel zooms in and out. Ctrl+Shift+period (zoom in) and Ctrl+Shift+comma (zoom out). There is also a drop down list that you can type in a specific zoom level you want.

Edit/Advanced/Untabify Selected Lines
In Beyond Compare, change Tab Stop from 8 to 4 spaces in Tools -> File Formats -> Misc

Resharper Key Map
A Visual Studio list

No comments: