Skip to content

Instantly share code, notes, and snippets.

@pcewing
Last active November 29, 2016 23:56
Show Gist options
  • Select an option

  • Save pcewing/e0d1bca73735dfbd2f93ca5f55684c25 to your computer and use it in GitHub Desktop.

Select an option

Save pcewing/e0d1bca73735dfbd2f93ca5f55684c25 to your computer and use it in GitHub Desktop.
Visual Studio Controls

Visual Studio Controls

This page acts as a way to document the shortcuts I like to configure when working in Visual Studio. I generally set these up with the primary goals being to eliminate any/all use of the mouse and to try to mirror my Vim controls as closely as possible. I use VsVim; however, the functionality doesn't make everything I'd like to do possible, such as setting <Space> as the leader key and running Visual Studio commands via chords. This is my attempt to pseudo-vimify the IDE.

Controls

Common Actions (Space)

Open File By Name - <C-Space>o

Command: ReSharper.ReSharper_GotoFile

Open Solution Explorer - <C-Space>e

Command: View.SolutionExplorer

Find In Files - <C-Space>g

Command: Edit.FindinFiles

Replace In Files - <C-Space>s

Command: Edit.ReplaceinFiles

New (n)

Add New Directory - <C-n>d

Command: Project.NewFolder Notes: This should be run from within the solution explorer pane.

Add New File - <C-n>f

Command: Project.NewFile Notes: This should be run from within the solution explorer pane.

Add New Class - <C-n>c

Command: Project.AddClass Notes: This should be run from within the solution explorer pane.

Add New Item - <C-n>i

Command: Project.AddNewItem Notes: This should be run from within the solution explorer pane.

Add Existing Item - <C-n>e

Command: Project.AddExistingItem Notes: This should be run from within the solution explorer pane.

Debug (d)

Toggle Breakpoint - <C-d>b

Command: Debug.ToggleBreakpoint

Goto (g)

Go to Definition - <C-g>d

Command: Edit.GoToDefinition

Go to Implementation - <C-g>i

Command: Edit.GoToImplementation

Go to Line - <C-g>l

Command: QueryDesigner.GotoRow

Navigate Backward - <C-g>p

Command: View.NavigateBackward

Navigate Forward - <C-g>n

Command: View.NavigateForward

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment