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.

Add option to use windows keymap on MacOS

See original GitHub issue
  • VSCode Version: 1.12.2
  • OS Version: macOS Sierra

We can write keybindings in package.json (Extension Manifest File).

"keybindings": [
    {
        "win": "ctrl+y",
        "mac": "cmd+backspace",
        "linux": "ctrl+y",
        "command": "editor.action.deleteLines",
        "when": "editorTextFocus && !editorReadonly"
    }
]

I got a request from some developers that they are using macOS but they want to use Windows keybindings. See Add option to use windows keymap on MacOS.

So, I’d like to switch mac and win in settings.json or something. Can I do this?

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:69
  • Comments:22

github_iconTop GitHub Comments

32reactions
FredHappyfacecommented, Feb 26, 2020

I’ve created a few extensions that should help with this. Though it would certainly be preferable to have this functionality out of the box

ext install fredhappyface.windowskeybindings
ext install fredhappyface.linuxkeybindings

Note that some keybindings may interfere with other extensions. In that case drop an issue and I’ll try and fix asap

17reactions
philpowerscommented, Oct 12, 2019

Lack of this functionality basically makes VSCode a non-starter for me on the Mac… My Mac sits right next to my PC, and if I have to memorize two sets of key bindings, I might as well stay in Xcode all the time (which makes me sad).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Keyboard mappings using a PC keyboard on a Macintosh
Describes the common keyboard key mappings when you use a Windows (PC) keyboard on a ... COMMAND (for most shortcuts) or CONTROL. ALT....
Read more >
How can I have my Windows keymap on Mac? - Super User
In System Preferences -> Keyboard & Mouse -> Modifier Keys, you can change the mapping for your caps lock, control, alt/option, and command...
Read more >
Windows keys on a Mac keyboard - Apple Support
Windows keys on a Mac keyboard ; Alt. Option. Enters special characters, such as é. ; Control. Windows key. Command. Performs actions or...
Read more >
How to Use a Windows PC Keyboard on Mac by Remapping ...
WINDOWS key becomes the ALT / OPTION key on Mac OS; ALT key becomes the COMMAND key on Mac OS. * NOTE: Some...
Read more >
How to use Windows keymap on Mac and in your favorite IDE ...
1.1 Changing keymapping in on Mac. Many most used commands in Windows and Linux rely on the key on the bottom right edge:...
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