Steps to Reproduce:
Most likely there is something bound to that key combination.
I know Atom had a similar bug at some time (https://github.com/atom/atom/issues/1625) but I don't know if VSCode and Atom share any code within the editor. But at least they have in common that Ctrl+Alt maps somewhat to AltGr. And Ctrl+ß maps to un-indenting while Ctrl+Shift+ß maps to code folding
Preferences > Keyboard ShortcutsDefine Keybinding
{ "key": "ctrl+shift+1", "command": "editor.action.replaceOne",
"when": "editorFocus && findWidgetVisible" },
2.a. Completely free up the keybinding. This will remove all the commands bound to "ctrl+shift+1". Write the following rule:
{ "key": "ctrl+shift+1" }
2.b. Completely remove a command. This will remove all keybindings associated with "editor.action.replaceOne". Write the following rule:
{ "command": "-editor.action.replaceOne" }
2.c. Remove that specific keybinding. Write the following rule:
{ "key": "ctrl+shift+1", "command": "-editor.action.replaceOne" },
Tip: Remember, in VS Code you can modify each and every keybinding to your liking, you are the sole master of your keyboard.
Thank you very much, I read through the Atom bug and your last answer and found the problematic keybinding.
{ "key": "ctrl+alt+[", "command": "paredit.wrapAroundSquare",
"when": "editorTextFocus" },
This is marked with an (i) and maps to ctrl+alt+ß on a German layout. Now I have to decide if I finally get used to a international layout for programming or if I remap the binding :)
Is it possible to create a kind of a localized keybinding for a certain keyboard layout?
I'm happy you could identify the problematic keybinding and remove it.
We currently do not support having keyboard layout specific keybindings, #1240 tracks that.
@alexandrudima , I have a similar issue, I cannot type # with a spanish keyboard. I could not find a related keybinding to altgr + 3 which types # in my kb layout. Info on my setup:
|Extension|Author|Version|
|---|---|---|
|cpptools|ms-vscode|0.10.2|
Steps to Reproduce:
#, or any other Alt Gr + number combination (\|@#~€¬) I looked at the similar atom issue but no luck.
Actually, seems my OS keyboard layout was set as US instead of ES (spanish). My bad!
German keyboard on Mac OS with GitLens installed: alt+shift+7 types a backslash, but is mapped to GitLens search history dialog. Just change the keyboard mapping.
Most helpful comment
German keyboard on Mac OS with GitLens installed:
alt+shift+7types a backslash, but is mapped to GitLens search history dialog. Just change the keyboard mapping.