Skip to content

OS Specific Keybindings #8962

@erichiller

Description

@erichiller

I have a company issued OSX machine, linux boxes and windows machines all of which I do dev work on, moving back and forth, I try to keep my settings in sync, it would be very nice to have an operating specific syntax for the keybindings file, much how tasks.json does.

{
    "version": "0.1.0",
    "windows": [
        {
            "key": "win+b",
            "command": "workbench.action.tasks.build"
        },{
            "key": "win+d",
            "command": "workbench.action.tasks.terminate"
        }
    ],
    "osx": [
        {
            "key": "cmd+b",
            "command": "workbench.action.tasks.build"
        },{
            "key": "cmd+d",
            "command": "workbench.action.tasks.terminate"
        }
    ]
}

Or better yet in line with #871 ...

{
    "windows": [
        {
            "key": "win+b",
            "command": [
                "workbench.action.tasks.terminate",
                "workbench.action.tasks.build"
            ]
        },{
            "key": "win+l",
            "command": "workbench.action.tasks.showLog"
        }
    ],
    "osx": [
        {
            "key": "cmd+b",
            "command": [
                "workbench.action.tasks.terminate",
                "workbench.action.tasks.build"
            ]
        },{
            "key": "cmd+l",
            "command": "workbench.action.tasks.showLog"
        }
    ]
}

For that matter it would be wonderful to have this ability for all of the user configurable settings

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalitykeybindingsVS Code keybinding issuesverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions