RSS Log in
 

As I tend to work mainly in full screen mode within Visual Studio with all toolbars closed, I use shortcuts quite extensively to execute standard IDE and ReSharper commands. Fortunately most commands already have shortcuts associated to them. However there are a few that I need to either map to new shortcuts or rebind to different key combination.

Below are my custom keyboard mappings:

Command Shortcut
Build.BuildSelection Shift + F6
Edit.LineOpenAbove Shift + Enter
Edit.ToggleWordWrap Alt + W
File.CloseAllButThis Ctrl + \
Macros.MyMacros.TBF.CloseAllToolWindows Alt + S
Macros.MyMacros.TBF.DecreaseTextEditorFontSize Alt + [
Macros.MyMacros.TBF.IncreaseTextEditorFontSize Alt + ]
Macros.MyMacros.TBF.RemoveRegions Ctrl + Shift + #
ReSharper.CollapseInSolutionExplorerAction Ctrl + `
ReSharper.Generate Alt + I
ReSharper.GotoNextErrorInSolution Alt + 0
ReSharper.MoveDown Ctrl + Left Windows, Ctrl + Down Arrow
ReSharper.MoveLeft Ctrl + Left Windows, Ctrl + Left Arrow
ReSharper.MoveRight Ctrl + Left Windows, Ctrl + Right Arrow
ReSharper.MoveUp Ctrl + Left Windows, Ctrl + Up Arrow
TestDriven.NET.RunTests F8
TestDriven.NET.RerunTests Shift + F8

 

To change your keyboard binding in Visual Studio, follow the steps below:

  1. Go to Tools > Options > Keyboard.
  2. Select the command you would like to bind to (e.g. Macros.Samples.Accessibility.DecreaseTextEditorFondSize).
  3. Select Text Editor or Global where appropriate.
  4. Enter your shortcut key (e.g. Alt + [).
  5. Click on Assign.

 Decrease text font size key binding

Once you’ve assigned all your keyboard shortcuts simply click OK and you’re done!


Comments are closed
© Copyright 2012 TheBooleanFrog Powered by: BlogEngine.NET|Credits|Subscribe via RSS

Follow

twitter linkedin linkedin rss

TheBooleanFrog

Programming sticky notes and other distractions...