Skip to content

Macro like keybindings #871

Open
Open
@TheColorRed

Description

@TheColorRed

When creating keyboard shortcuts, it would be nice if you could pass an array of commands (to execute like a macro) that would run the commands in that order.

So take this for example:

{
    "key": "ctrl+s",
    "command": [
        "editor.action.format",
        "editor.action.trimTrailingWhitespace",
        "workbench.action.files.save"
    ],
    "when": "editorTextFocus"
}

It would format the file, remove trailing white space then save the file.

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalitykeybindingsVS Code keybinding issues

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions