Skip to content

[Proposal] Keyboard shortcut to duplicate a line #11975

@yahiko00

Description

@yahiko00

This would be quite convenient if we could duplicate a line with a single shortcut, since it is quite a common practice when coding to reuse a previous line. This quite simple proposal may help to bring some productivity.

Overview of the workflow

When the cursor is on a line, the current line, we could imagine to be able to duplicate the current line by pressing a shortcut. In Notepad++ it is CTRL+D. It seems this key combination is still available in VS Code so we could use it as a shortcut to duplicate lines.

Also, it could be convenient to have this command in the Edition menu, maybe between the copy/paste related commands and the search/replace commands.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions