line duplicate vscode 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: vscode duplicate line

Shift + Alt + Any Up 0r Down Keys

Example 3: ubunutu duplicate shortcuts

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