How to Move Selected Code Up or Down in Visual Studio 2010

How to Move Selected Code Up or Down in Visual Studio 2010

How to Move Selected Code Up or Down in Visual Studio 2010

You can easily move lines up and down using MoveLine Extension.


Download Link – https://marketplace.visualstudio.com/items?itemName=KevinAenmey.MoveLine

How to Move Selected Code Up or Down in Visual Studio - Homepage
How to Move Selected Code Up or Down in Visual Studio – Homepage


To Download “Move Line Extension Using Visual Studio 2010” :
Step 1. Go Tools

How to Move Selected Code Up or Down in Visual Studio - Tools
How to Move Selected Code Up or Down in Visual Studio – Tools


Step 2. Choose Extension Manager.

How to Move Selected Code Up or Down in Visual Studio - Extension Manager
How to Move Selected Code Up or Down in Visual Studio – Extension Manager


Step 3. From the left pane select “Online Gallery”.

How to Move Selected Code Up or Down in Visual Studio - Online gallery
How to Move Selected Code Up or Down in Visual Studio – Online gallery


Step 4. Type The name of the extension in the search box. In this Case “MoveLine”;

How to Move Selected Code Up or Down in Visual Studio - Search MoveLine
How to Move Selected Code Up or Down in Visual Studio – Search MoveLine


Step 5. Then Click Download.

How to Move Selected Code Up or Down in Visual Studio - Install MoveLine
How to Move Selected Code Up or Down in Visual Studio – Install MoveLine


Step 6. When The Download Finishes, restart your IDE.

How to Move Selected Code Up or Down in Visual Studio - Restart IDE Visual Studio 2010
How to Move Selected Code Up or Down in Visual Studio – Restart IDE Visual Studio 2010

If you go back to extension manager, you will see that the extension has been added.

How to Move Selected Code Up or Down in Visual Studio - Installed
How to Move Selected Code Up or Down in Visual Studio – Installed

To move single line or selected block of code (Multiple Lines) use the keyboard shortcuts below.

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

READ MORE  How To Download Install And Configure Java Development Kit (Jdk) 8 On Windows 7

Leave a Reply

Your email address will not be published. Required fields are marked *