Ajay Kumar
Ajay Kumar

Reputation: 1164

Override a single Resharper key binding with Visual Studio Key binding

I want to use visual studio's default Alt+Down Arrow key binding instead of Resharper's Alt+Down Arrow binding. I am using Resharper key scheme.

I have tried assigning the key binding from Environment > Keyboard and assigned Alt+Down Arrow to Edit.MoveSelectedLinesDown but it is not working.

Upvotes: 1

Views: 343

Answers (2)

Fabio Salvalai
Fabio Salvalai

Reputation: 2509

In TOOLS --> Options | Environment| Keyboard

  • Select the scope if the shortcut (can be global) in the use new shortcut in: combo box
  • go in the Press shortcut keys text box, perform your key presses (Alt+Down Arrow) and select the command you want to assign it to in the list above.
  • Click the Assign button
  • Click OK

Upvotes: 0

hmojtaba
hmojtaba

Reputation: 167

First remove the key binding related to resharper, then in the same window, add that key binding of visual studio.

edit: remove the assigned key for ReSharper.ReSharper_GotoNextMethod in keyboard tab of options from all Items in the list of shortcuts (text editor, global, ...). Then assign alt+down to Edit.MoveSelectedLineDown. i just tested this and it is working.

Upvotes: 1

Related Questions