Create Duplicate Line Visual Studio Code (above or below) Example


Add Duplicate line above or below VS Code

If you want to create a duplicate line in Visual Studio Code, make use of the below keyboard shortcuts,



To create a duplicate line above the current line

Key the cursor on the line you want to duplicate,

Windows: Shift + Alt + Up Arrow Key ↑
Mac: Shift + ⌥ Option + Up Arrow Key ↑
Linux: Control + Shift + Alt + Up Arrow Key ↑


To create a duplicate line below the current line

Key the cursor on the line you want to duplicate,

Windows: Shift + Alt + Down Arrow Key ↓
Mac: Shift + ⌥ Option + Down Arrow Key ↓
Linux: Control + Shift + Alt + Down Arrow Key ↓
-


Have Questions? Post them here!


Top Hashtags: