Skip to the main content

Visual Studio Code

Copy line

CtrlC

Windows Desktop app Visual Studio Code default keymap

Practice this

In Visual Studio Code this is copy line. It applies here: empty selection.

Where it works: Empty selection

This applies when nothing is selected. It copies the whole line.

Where this comes from

Visual Studio Code key bindings

Documentation checked on 2026-09-11. That is a documentation review, not a test run inside the application.

Report a correction