I am new to Visual Studio Code. I want to know how to duplicate a line using a keyboard shortcut.
Please help.
Thanks
I am new to Visual Studio Code. I want to know how to duplicate a line using a keyboard shortcut.
Please help.
Thanks
In Visual Studio Code you can perform the "Copy line down/up" action. The keyboard shortcut varies depending on your operating system.
The defaults for each os are as follows.
Windows
Shift + Alt + Up/Down
Macos
Shift + Option + Up/Down
Linux
Ctrl + Alt + Shift + Up/Down
Note: This shortcut will also copy multi-line selections up and down as in Sublime but when a subset of a line is selected the entire line is copied.