How to move a line up and down in VS2015

I donโ€™t know if something has changed recently in Visual Studio 2015, but before I could press ALT + UP ARROW KEY or ALT + DOWN ARROW KEY to move the lines in the code up or down, and now it does nothing .

I went into Tools > Options > Environment > Keyboard and I cannot find anything like this in the past ProjectandSolutionContextMenus.Item.MoveUp or ProjectandSolutionContextMenus.Item.MoveDown

Also here, on the VS2015 list, I do not see this option: http://visualstudioshortcuts.com/2015/

How to do it?

+5
source share
1 answer

The commands you are looking for are Edit.MoveSelectedLinesUp and Edit.MoveSelectedLinesDown . Shortcuts for them should be defined in the context of the Text Editor .

+11
source

Source: https://habr.com/ru/post/1258115/


All Articles