I would like to use CTRL-P/CTRL-n instead of Up/Down arrows to select the completion candidate. I tried to
:imap <C-n> <Down>
, but instead of selecting the next completion candidate, the cursor will go down to the next line.
Instead of using a vim key mapping, you can handle this with a Visual Studio keyboard shortcut (Tools > Options > Environment > Keyboard):
The Edit.LineUp
and Edit.LineDown
commands are what you're looking for. You can see in the image above that I am using Alt+J for Edit.LineDown
, but you can use Ctrl+N instead. I prefer using the Alt key instead of the Ctrl key because pressing Ctrl dims out the Intellisense list, while Alt does not. Just a matter of preference though.
I formerly had this same question, and I received the answer here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With