question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

keybindings.json not syncing

See original GitHub issue

🐛 Describe the bug

I uploaded my custom VSCode keyboard shortcuts from one computer and tried to use sync settings to download the same keyboard settings onto a second computer. This is what I got on the second computer after sync settings processed.

keybindings.json:

// Place your key bindings in this file to override the defaults
[
]

🌴 Visual Studio Code Version : 1.43.2 🌴 Code Settings Sync Version : 3.4.3 🌴 Standard or Insiders : Standard 🌴 Portable or Installed : Installed 🌴 OSS or Official Build : Official Build 🌴 Operating System : macOS 10.15 Catalina 🌴 Occurs On: Sync 🌴 Proxy Enabled: No 🌴 Gist Id: ca5bac8864a6c00bc671157a3dcd984a

📰 To Reproduce Steps to reproduce the behavior:

  1. Customize shortcut keys on a Windows computer. For example, remap Control+L to navigate by line number.
  2. Upload settings to Gist with sync settings plugin.
  3. On a macOS computer, install the sync settings plugin. Download settings.
  4. On the mac, open the shortcuts keybindings.json file.

💪 Expected behavior

All shortcut settings transferred from the Windows computer to the macOS computer exactly as written in the keybindings.json shortcuts file on Windows.

I happened to select generic, BM PC compatible keyboard shortcuts for my keybindings.json file, but I would expect the settings to be preserved across computers even if I chosen Windows-specific shortcuts, or macOS-specific shortcuts, or Linux-specific shortcuts, and so on.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:7
  • Comments:9

github_iconTop GitHub Comments

8reactions
Hubrocommented, Feb 18, 2021

This prompted me to test the official settings sync feature in VSCode, which has the setting "settingsSync.keybindingsPerPlatform". When set to false, my keybindings are successfully synced between all my PCs, including my MacBook.

0reactions
waterproofpatchcommented, Aug 20, 2022

@Hubro Did you have to sync both machines, or just the one where you’re trying to download the keybindings settings after setting settingsSync.keybindingsPerPlatform to false?

I don’t have access to the machine I uploaded te keybinding settings currently, so I can’t trigger that with this new setting settingsSync.keybindingsPerPlatform. And downloading of the settings does not happen after changing the setting and triggering a sync 😦

I think I just ran into this same issue just now, trying to sync keybindings.json from my macbook to my ubuntu VM, in vscode 1.70. I set “settingsSync.keybindingsPerPlatform”: ‘false’" on both machines, and within a minute or so I had my bindings synced on my Ubuntu VM from my macbook.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Settings Sync in Visual Studio Code
Settings Sync lets you share your Visual Studio Code configurations such as settings, keybindings, and installed extensions across your machines so you are ......
Read more >
Synchronize VS Code Keyboard Shortcuts between Windows ...
I've manually copied keybindings.json but don't want to do it every time I make a change. I have not found a 3rd party...
Read more >
Key Bindings for Visual Studio Code - vscode-docs
no more rules are processed. if a rule is found and has a command set, the command is executed. The additional User/keybindings.json ......
Read more >
How to Customize Keyboard Shortcuts in Visual Studio Code
Then we will take a deep dive into my keybindings. json config. Code - https://github.com/SuboptimalEng/dotf.
Read more >
Using Settings Sync to sync keybindings with PC and Mac?
Edit: Found an option in the sync settings: Keybindings Per Platform. You have to uncheck that on both platforms. Okay so that fixed...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found