Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the ALT+UP/DOWN (move line) setting in Visual Studio 2017?

I installed Resharper 2017 for VS2017, in the first run it asked about hotkey setup and I chose VS hotkeys. I tried Resharper and decided to uninstall it. Now ALT + UP / DOWN doesn't move lines! How can I fix it? What option should I check.

like image 578
Dork Avatar asked Jun 14 '17 16:06

Dork


People also ask

How do you move a line up and down in Visual Studio?

This keyboard shortcut is new in Visual Studio 2013. If you put the cursor on a line of code and use the Alt+Up Arrow keys, the line of code you've selected moves up.

How do you move a line of code up and down?

With your caret on a line, you can press ⌥⇧↑ (macOS), or Alt+Shift+Up Arrow (Windows/Linux), to move a line up. Alternatively, you can move a line down with ⌥⇧↓ (macOS), or Alt+Shift+Down Arrow (Windows/Linux). The same shortcut can move a selection up or down.

How do you shift a line of code up?

Press ⌥⇧↑ (macOS), or Alt+Shift+Up Arrow (Windows/Linux), to move a line up. To move a line down use ⌥⇧↓ (macOS), or Alt+Shift+Down Arrow (Windows/Linux). This shortcut does not factor in scope.


1 Answers

Ok. I found it in Tools > Options > Environment > Keyboard > Edit.MoveSelectedLinesUp(Down)

like image 168
Dork Avatar answered Nov 16 '22 01:11

Dork