Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using intellisense and Vsvim

I recently installed vsvim and was wondering how to do a few things.

When intellisense pops in and gives you a few options, Is there a way to choose them without using the arrow keys?

Kind of breaks the vim flow.

Thanks in advance.

like image 374
Jason Mirk Avatar asked Mar 16 '15 17:03

Jason Mirk


3 Answers

If you use ALT, intellisense doesn't turn transparent!

Go to Tools, Options, Keyboard and edit these commands

Edit.LineUp : Alt+p Edit.LineDown : Alt + n

like image 148
Jason Mirk Avatar answered Oct 19 '22 22:10

Jason Mirk


In general no. Once Intellisense is displayed VsVim essentially backs off and lets Visual Studio key handling take over. Intellisense is one of the more important features of Visual Studio and VsVim attempts to integrate into that experience instead of taking it over.

But it's an area that's open to improvement if there is a good design around it. Is there a particular way you would like to interact with it?

like image 2
JaredPar Avatar answered Oct 19 '22 22:10

JaredPar


You can bind the keys in visual studio for intellisense like in Jason Mirks answer, but there are problems with various other popups, especially if you have things like resharper. Quite a lot of these plugins don't respect the VS keybindings in their popups. A good way to work around this is with an autohotkey script ( which does Caps Lock as the ESC key as well)

SetTitleMatchMode, RegEx
#IfWinActive .*Microsoft Visual Studio|ReSharper
<!k::Send {Up}
<!j::Send {Down}
Capslock::Esc
#IfWinActive
like image 1
Keith Nicholas Avatar answered Oct 19 '22 22:10

Keith Nicholas