C SHARP AND MYSQL DATABASE CRUD TUTORIAL 40 How to Move a Line Selected Code Up or Down in Visual Studio
C# AND MYSQL DATABASE CRUD TUTORIAL #40 – How to Move a Line(Selected Code) Up or Down in Visual Studio
VIDEO TUTORIAL
This Tutorial Shows How to Move a Line(Selected Code) Up or Down in Visual Studio In C Sharp .Net Windows Forms Application using visual studio 2010.
You can easily move lines up and down using MoveLine Extension.
Download Link – https://marketplace.visualstudio.com/items?itemName=KevinAenmey.MoveLine
To Download “Move Line Extension Using Visual Studio 2010” :
Step 1. Go Tools
Step 2. Choose Extension Manager.
Step 3. From the left pane select “Online Gallery”.
Step 4. Type The name of the extension in the search box. In this Case “MoveLine”;
Step 5. Then Click Download.
Step 6. When The Download Finishes, restart your IDE.
If you go back to extension manager, you will see that the extension has been added.
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