Showing posts with label Visual Studio. Show all posts
Showing posts with label Visual Studio. Show all posts

Monday, 15 December 2014

Setting keyboard shortcuts for AnkhSVN

If (for any odd reason) you use Subversion as source control for .NET development, most probably you do it via AnkhSVN plug-in for Visual Studio. Most Subversion commands are accessible via Pending changes window:

or document context menu:

By default, these commands do not have keyboard shortcuts bound. The standard way to bind keyboard shortcuts to Visual Studio commands is Tools -> Options -> Environment -> Keyboard menu:

Then you need to search for the appropriate command, which is not always easy thing to do.

So here are mappings for AnkhSVN commands pictured above:

Command Location Visual Studio definition
Show Changes Pending Changes context menu ClassViewContextMenus.ClassViewProject.SourceControl.Svn.Compare
Commit... Pending Changes context menu File.CommitItem
Revert Local Changes Pending Changes toolbar Revert
Update To Latest Version Pending Changes toolbar UpdatePendingChanges
Annotate Opened document context menu EditorContextMenus.CodeWindow.Subversion.DocumentAnnotate
View History Opened document context menu EditorContextMenus.CodeWindow.Subversion.DocumentHistory