Skip to content

Support mac/linux/windows subkeys in keybindings.json the same as extensions.contributes.keybindings... #45679

Closed

Description

@joerohde

Issue Type: Feature Request

For users running on multiple machines/platforms, it is common to sync the vs settings. Without support for the default 'key' and override-platform-specific 'windows/mac/linux' subkeys, there's no good way to share keybindings.json.

Keeping multiple copies is a pain to keep in sync; and with the commonality of 'cmd' on Mac in particular, it's hard to have a true common config that works across platforms.

I may be underestimating the work, but it looks like the most tedious/difficult part would be extending the localization of the schema in keybindingservice.ts. :)

There does not seem to be a write model that would need to preserve the original values.
(writeKeybindingItem looked like it might be it, but it's generating very specific formatting for the Default Keybindings window. I guess it could be used by something more general and OS specific bindings would be lost?)

VS Code version: Code 1.21.0 (9a199d7, 2018-03-07T10:54:22.798Z)
OS version: Darwin x64 16.7.0

Activity

  1. added
    keybindings
    on Mar 13, 2018
  2. added
    feature-request
    on Mar 14, 2018
  3. joerohde commented on Mar 16, 2018

    @joerohde
    Author

    The attached PR #45995 has an implementation; and tests. I've attempted to make sure there are no downstream effects; but not being fluent in non-extension code, I won't claim it's ship ready.

  4. bpasero commented on Aug 7, 2018

    @bpasero
    Contributor

    Duplicate of #8962

  5. added
    *duplicate
    on Aug 28, 2018
  6. removed
    feature-request
    on Aug 28, 2018
  7. locked and limited conversation to collaborators on Sep 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

*duplicatekeybindings

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions