Questions tagged [vscode-keybinding]
101 questions
0
votes
1 answer
How to add timeout after first letter of a chord in a custom VS Code keybinding
I have a custom keybind for Esc for my neovim extension in VS Code, that mapping being the chord "j k". When I am in Insert Mode, I can now successfully type "jk" to exit Insert Mode and enter Normal Mode. The problem is that I now cannot type the…

Tim K
- 39
- 6
0
votes
4 answers
How can I restore a removed keyboard shortcut in VS Code?
I accidentally removed a whole keyboard shortcut instead of just removing the associated keys.
I don't exactly remember which one I removed and I have no idea on how to bring it back. How can I bring it back?

DerThronprinz
- 47
- 3
0
votes
0 answers
VS Code: Configure keyboard shortcuts to move cursors when !textInputFocus
I'd like to use Ctrl+B/Ctrl+F for VSCode Neovim when editing code, which I assume textInputFocus is about, and use them to move the cursor left/right when not editing code, for example in:
Command Palette
Search Files
Code Search
Settings…

k0kubun
- 1
- 1
0
votes
1 answer
Same key binding shortcut use differently in different example.json file in vscode
{
"key": "ctrl+l",
"command": "editor.action.insertSnippet",
"when": "editorTextFocus",
"args": {
"snippet": "console.log('${TM_SELECTED_TEXT}$1')$2"
}
}
This just wrap the text into console.log(text);
I need a shortcut…

Imtiaze
- 43
- 9
0
votes
1 answer
same Keybinds to opposite commands
I would love to set my 'tranformTOLowerCase' and 'tranformToUpperCase' to the same keybind, and use the when clause option that vs code has, but I can't find the right property to rely on,
I'v looked in the vsCode documentation under when contexts…

M. Almog
- 31
- 6
0
votes
2 answers
multiple key bindings in vscode (visual studio code) cursor right disabled after creation on new keybinding
Am new in VScode and i added a new shortcut to move the cursor right, as the right arrow key, forces me to move my hand, NOW THE RIGHT ARROW IS DISABLED and i can do other tasks such moving a full word right as the shortcut has completely replaced…

Брент Скофeлд
- 1
- 2
0
votes
1 answer
Is there a shortcut to jump between views inside the explorer (e.g from Files to NPM Scripts or Timeline)
Couldn't find a command in the Keyboard Shortcuts list that focuses next or previous view in the explorer.
I know there are commands available to directly focus certain views (e.g npm.focus, timeline.focus, workbench.explorer.fileView.focus) but…

jaiguru
- 23
- 5
0
votes
0 answers
Insert tab after some text instead of expanding when emmet expansion is on in VS Code
In VS code, when emmet.triggerExpansionOnTab is on I can write something like "div", then press [tab] to generate a HTML tag like this:
Which is very useful, but it also happens when I press [tab] anywhere, If I write "something" and…

stramin
- 2,183
- 3
- 29
- 58
0
votes
0 answers
Move Keybindings from VSCode to PhpStorm
Is there any way to export your key-bindings from VSCode and import them to PhpStorm?
I know that there is an extension for PhpStorm but I have already customised my shortcuts in VSCode. So I would love to simply move it from one to another.

r0pe-12
- 57
- 2
- 9
0
votes
3 answers
VS Code Shortcut to remove Markup from selected text in Markdown and Latex
I use Visual Studio Code to edit Markdown and Latex files.
I added the following entries to my keybindings.json file to make the selected text either italic or bold:
// Markdown Bold Text when Editor has Selection
{
"key": "cmd+b",
…

Joel Beck
- 318
- 2
- 6
0
votes
0 answers
How to run code again using shortcut keys in vs code?
I ran my code using the shortcut keys and I ran for the first time. Then I wanted to run the code again, so I pressed the keys again to run but it doesn't run. Rather it types whatever keys I'm pressing. It does run the code by pressing the run…

Avni Aggarwal
- 1
- 1
0
votes
0 answers
In VSCode, can we map a same key to different snippet for different languages?
I am just wondering if there's a way to bind the same key to different snippets for different languages in just one keybinding.
What I want is something like
{
"key": "cmd+B",
"command": "editor.action.insertSnippet",
"ops":…

Jason Song
- 145
- 1
- 9
0
votes
0 answers
how to fix waiting for key chord in vscode
I have a lot of key binding such the following:
{
"key": "; c",
"command": "editor.action.insertSnippet",
"when": "editorLangId == vhdl && neovim.mode == insert && editorTextFocus",
"args": {
"name": "constant"
}
}
but now i cannot…

Ahmad Zaklouta
- 165
- 2
- 12
0
votes
1 answer
Keybinds in visual studio code
I was typing in Visual Studio Code and I slammed at a lot of keys and from that moment for some reason when I press ctrl + alt + n I get } and can't run my program with that keysbind anymore eveh tho it stil says over the run button that ctrl + alt…

user15000738
- 1
- 1
0
votes
1 answer
Switch to, and from, Preview, with 1 keyboard shortcut?
I tried using textInputFocus && !inputFocus && editorLangId == 'markdown' and textInputFocus && editorReadonly && editorLangId == 'markdown' in When Expression for markdown.showSource, with relevant respective versions for markdown.showPreview .
But…

irvnriir
- 673
- 5
- 14