vs code duplicate line code example

Example 1: VScode duplicate line

//------------ How to duplicate lines of code? --------------//

-> Windows:

Shift + Alt + Down   and   Shift + Alt + Up

-> Mac:

Shift + Option + Down   and   Shift + Option + Up

-> Linux:

Ctrl + Shift + Alt + Down   and   Ctrl + Shift + Alt + Up

Example 2: vs code duplicate selection

//Windows
SHIFT + ALT + UP and SHIFT + ALT + DOWN

//Mac
SHIFT + OPTION + UP and SHIFT + OPTION + DOWN

//Linux
CTRL + SHIFT + ALT + UP and SHIFT + ALT + DOWN

Example 3: vscode duplicate line

Shift + Alt + Any Up 0r Down Keys

Example 4: vs code copy a link down

On Windows: Shift + Alt + Up/Down.
On Mac: Shift + Option + Up/Down.
On Ubuntu: Ctrl + Shift + Alt + Up/Down.

Example 5: duplicate line un vs code

---------------- Windows ---------------
Duplicate Line Up   : Shift + Alt + Up
Duplicate Line Down : Shift + Alt + Down

----------------  Linux ------------------
Duplicate Line Up   : Ctrl + Shift + Alt + 8.
Duplicate Line Down : Ctrl + Shift + Alt + 2.

Example 6: ubunutu duplicate shortcuts

{ "key": "shift+alt+down",        "command": "editor.action.copyLinesDownAction",
                                     "when": "editorTextFocus" },
{ "key": "shift+alt+up",          "command": "editor.action.copyLinesUpAction",
                                     "when": "editorTextFocus" },