Questions tagged [vscode-keybinding]
101 questions
0
votes
1 answer
Why do my VS Code keybindings change when I open IntelliJ IDEA projects?
In VS Code, my keybindings change when I open a project.
I have enabled the "Default" profile in File > Preferences > Profile but when opening a project (IntelliJ project) the keybindings change.
The bindings change in all other instance until I…

Code Spirit
- 3,992
- 4
- 23
- 34
0
votes
0 answers
Using token type / scope in "when" clause of a keybinding in VSCode
I want to configure a keyboard shortcut to rename a jsx tag only when a cursor is on an actual jsx tag.
Is there something that allows this?
source:…

Qwerty
- 29,062
- 22
- 108
- 136
0
votes
0 answers
VSCode making a keybinding for assigning a value to a setting configuration
I am trying to write a json keybinding in VSCode for changing a value that is assigned to a specific setting. The setting I have in mind is latex-workshop.view.pdf.invert from Latex Workshop. I want my shortcut to change the value assigned to this…

HJR
- 1
0
votes
1 answer
Disable VS Code command keybinding when Command Palette is open
tl;dr: How can I disable a command keybinding while the Command Palette is open?
I'm developing an extension that makes a webview. When the webview is active, I have some commands that can be invoked by a single letter with no modifiers:
…

Phrogz
- 296,393
- 112
- 651
- 745
0
votes
2 answers
Is there a NOT operator in VSCode Keybindings JSON to invert an entire "when" clause?
The "when" clause in VSCode's JSON keybindings editor is very useful, but I can't seem to find a way to reverse it. For instance, if I want an action to only work when the Terminal view is not showing, I would want something like this:
"when":…

Samwise Ganges
- 395
- 6
- 11
0
votes
1 answer
How can I set a hotkey to input a command in VS Code's terminal?
Is it possible to set a VS Code hotkey to input a command in the terminal?
I need to input r to hot reload my flutter app. and it'll be easier if I can have a hotkey for that.
I can use ctrl+` to switch to terminal and input r myself, but I hope…

Mohammad Huseyn
- 85
- 5
0
votes
0 answers
How to bind the "Go to Line" feature in Visual Studio Code to a single keystroke?
Is there a way to shorten the process of moving the cursor to a specific line in a file using the Go to Line feature in Visual Studio Code? Currently, the process involves pressing Ctrl + G, typing the line number in the input box, and pressing…

mikeym
- 5,705
- 8
- 42
- 62
0
votes
1 answer
++ interpreted as when recording VS Code key binding
I am attempting to remap the key binding for scrollPageUp and scrollPageDown from + and + to ++ and ++, respectively.
However, when in the 'key binding recorder' (where it…

Chris Morris
- 4,335
- 4
- 24
- 28
0
votes
0 answers
How do I make custom vscode keybind work multiple presses in a row without repressing modifier key?
I've rebound the workbench.action.navigateBack to '§' + 1, and workbench.action.navigateForward to '§' + 2. The § key is a great modifier on nordic keyboard layouts.
However, while pressing and holding '§', pressing 1 or 2 more than once…

LNorth
- 33
- 4
0
votes
1 answer
How can I switch between tabs only in the active editor group
In VS Code, whenever I'm in the split view (when I have multiple editor groups) and want to switch tabs with ctrl+tab, the tab switches fine until I reach the last tab on that active window (editor group). Then, instead of looping back to the first…

amitkulk123
- 103
- 5
0
votes
1 answer
How can I add a sequence of commands on the same key binding?
I have this key binding that terminates a running process, what I need is to run another command or a task followed by this one:
{
"key": "ctrl+b",
"command": "workbench.action.terminal.sendSequence",
"args": {"text":"\u0003"},
…

Ziad Yasser
- 1
- 1
0
votes
0 answers
Is there a shortcut for summary information in vscode?
If you mouse over a function or method, the following window appears.
Is it possible to toggle a help window like this with a shortcut key?
I want to use this function using the keyboard, but I don't know how to set it up. If anyone knows, please…

madol
- 551
- 2
- 17
0
votes
0 answers
Why a certain keys on my keyboard not working in VS code
So recently I was configuring some key bindings and snippets in VS Code and now the letter K is not showing up in the editor.
When I press the key K, I get the message at the bottom of my screen saying "K was pressed wait for a second cord.
Any help…

TheHollyRoller
- 61
- 2
- 7
0
votes
1 answer
How to create a keyboard shortcut in Visual Studio Code to move the cursor
Regarding Visual Studio Code shortcuts: What is the command Id to move the cursor one space to the right? This way I could create a key binding to accomplish this command.

TheHollyRoller
- 61
- 2
- 7
0
votes
0 answers
How to make vscode call snippet from shortcut keybindings instead of asking user to 'select a snippet'?
An hour ago, my snippets and keybindings were working in VSCode. I must have changed a setting on accident?
Problem:
When I use custom keyboard shortcuts to call custom snippets, the snippet does not run. Instead, vscode provides a dropdown menu…

NicoWheat
- 2,157
- 2
- 26
- 34