Search code examples
visual-studiokeyboard-shortcuts

Visual Studio Alt and Arrow Up/Down is not working


Alt+ and Alt+ is not working in Visual Studio. Some people don't use it, but for those who do it's annoying when it's not there.

I expect the shortcuts to move the selected lines up/down.


Solution

  • Go to Tools\Options... in the menu, then Environment\Keyboard in the tree view and search for

    • Edit.MoveSelectedLinesDown, and
    • Edit.MoveSelectedLinesUp

    Add global shortcuts for them: Alt+Down Arrow and Alt+Up Arrow respectively.

    Screenshot from Visual Studio 2019