Skip to content
| Marketplace
Sign in
Visual Studio>Tools>MoveLine
MoveLine

MoveLine

KevinAenmey

|
9,191 installs
| (16) | Free
Moves a line up or down in the editor using shortcut keys.
Download

Moves a line, or group of lines, up or down in the editor using shortcut keys.  Press the shortcut keys to move the line under the cursor up or down or select a block of text and press the shortcut keys to move the entire block up or down.

 

The default shortcut keys are as follows:

  • Alt+Up Arrow – Moves a line up
  • Alt+Down Arrow – Moves a line down

 

To change the shortcut keys:

  • In the Visual Studio main menu go to Tools -> Options
  • Expand Environment
  • Select Keyboard
  • In the Show commands containing box type Tools.MoveLineUp orTools.MoveLineDown
  • In the Press shortcut keys box press the new shortcut keys
  • Click Assign

 

Please note: ReSharper has shortcut keys assigned to the default Alt+Up Arrow (ReSharper.ReSharper_GotoPrevMethod) and Alt+Down Arrow (ReSharper.ReSharper_GotoNextMethod).  If you have ReShaper installed you will need to assign different keys to the MoveLine commands as outlined above or reassign the ReSharper shortcut keys.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft