# VS code keybinding conflict on macOS

**URL:** <https://discourse.julialang.org/t/vs-code-keybinding-conflict-on-macos/44256>\
**Category:** VS Code\
**Tags:** question\
**Created:** [August 4, 2020, 12:59pm UTC](https://discourse.julialang.org/t/vs-code-keybinding-conflict-on-macos/44256 "2020-08-04T12:59:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![luraess](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/luraess/32/16189_2.png) [@luraess](https://discourse.julialang.org/u/luraess)\
**Post date:** [August 4, 2020, 12:59pm UTC](https://discourse.julialang.org/t/vs-code-keybinding-conflict-on-macos/44256/1 "2020-08-04T12:59:59Z")

</div>

Trying the define the `cursorEndSelect` and `cursorHomeSelect ` keybindings in VS code under macOS is not working as it conflicts with macOS “mission control’s spaces switching” keyboard shortcuts. The keybindings entries I try to enforce in VS code’s json file are following:

```julia
[
{
    "key": "cmd+shift+right", // not working because of mission control
    "command": "cursorEndSelect",
    "when": "textInputFocus"
},
{
    "key": "cmd+shift+left", // not working because of mission control
    "command": "cursorHomeSelect",
    "when": "textInputFocus"
}
]

```

A quick fix would be to modify different keybindings either for mission control or VS code. Since keybindings or shortcuts are rooted into long terms “habits”, would there be a workaround in VS code to enforce keybindings even if they conflict with system ones. In SublimeText, for example, this is not an issue. Thanks for help

---

<div class="post-metadata">

**Author:** ![hendri54](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hendri54/32/9621_2.png) [@hendri54](https://discourse.julialang.org/u/hendri54)\
**Post date:** [August 4, 2020, 5:12pm UTC](https://discourse.julialang.org/t/vs-code-keybinding-conflict-on-macos/44256/2 "2020-08-04T17:12:08Z")

</div>

There is an old, but still relevant discussion about this on [stackexchange](https://apple.stackexchange.com/questions/13178/any-way-to-remap-keys-for-only-one-app). My own solution for this kind of situation is Keyboard Maestro (which I run anyway for other purposes).

---

<div class="post-metadata">

**Author:** ![luraess](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/luraess/32/16189_2.png) [@luraess](https://discourse.julialang.org/u/luraess)\
**Post date:** [August 5, 2020, 8:05pm UTC](https://discourse.julialang.org/t/vs-code-keybinding-conflict-on-macos/44256/3 "2020-08-05T20:05:29Z")

</div>

Thanks for the workaround and the link. I will consider it, but would just be nice to have a work around that would not rely on third party software.
