Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Resharper and ViEmu Keybindings ( and Visual Assist )

With ViEmu you really need to unbind a lot of resharpers keybindings to make it work well.

Does anyone have what they think is a good set of keybindings that work well for resharper when using ViEmu?

What I'm doing at the moment using the Visual Studio bindings from Resharper. Toasting all the conflicting ones with ViEmu, and then just driving the rest through the menu modifiers ( Alt-R keyboard shortcut for the menu item ). I also do the same with Visual Assist shortcuts ( for C++ )

if anyones got any tips and tricks for ViEmu / Resharper or Visual Assist working together well I'd most apprciate it!

like image 957
Keith Nicholas Avatar asked Sep 17 '08 20:09

Keith Nicholas


2 Answers

You can also create mappings in ViEmu that will call the VS and R# actions. For example, I have these lines in my _viemurc file for commenting and uncommenting a selection:

map <C-S-c> gS:vsc Edit.CommentSelection<CR>
map <C-A-c> gS:vsc Edit.UncommentSelection<CR>

The :vsc is for "visual studio command," and then you enter the exact text of the command, as it appears in the commands list when you go to Tool>Options>Keyboard

I don't use any of the R# ones in this way, but it does work, as with:

map <C-S-A-f> gS:vsc ReSharper.FindUsages<CR>
like image 83
Jay Avatar answered Sep 20 '22 10:09

Jay


I use both as well, but I'm using the IntelliJ keybindings instead, so I can't speak specifically to the Visual Studio bindings. J.P. Boodhoo has some changes that he has made via AutoHotKey to provide additional Vim-like functionality to Visual Studio + ReSharper + ViEmu.

I have removed a few of the scanned keys, though, because I want to keep some of the ReSharper functionality over the ViEmu functionality, though the way I use these tools change over time as I learn more shortcuts from either ViEmu or ReSharper.

like image 36
David Mohundro Avatar answered Sep 22 '22 10:09

David Mohundro