bind
¶
This command can be used in the UI Command Prompt to change keybindings in either the board view or the schematic view.
Signature¶
Create Key Binding¶
bind <KEY> <COMMAND>
<KEY>
is which key to bind to the <COMMAND>
which can be any command that
can be entered on the UI command prompt. The KEY can be a combination of
modifiers and a button. For example, you can use ctrl-shift-m
to bind that
combination.
Note that some keys have special key codes that may also be used, for example,
to bind the number key pad 4 you need to specify Numpad4
, which can also be
combined with modifiers, e.g. shift-Numpad4
. To use special keys, please
refer to the full list of key event codes.
Be aware that some of these, or combinations, may be intercepted by your
operating system, and some may be intercepted by VSCode and would only work in
a pop-out view. The windows key and command key (on mac) modifier can be
referred to as meta
or cmd
.
The scroll wheel is given the special event code scrollup
and scrolldown
. In
case you have two scroll wheels, the second scroll wheel should be available as
scrollleft
and scrollright
.
The special modifier off
allows binding a command to a key release. This
allows momentary keybinds where a command is invoked on key press, and another
on key release. The modifier on
exists for completeness, but is the default,
and specifying it has no effect. Be aware that combining off
modifiers with
other modifier keys may lead to non-intuitive behavior, it's recommended to not
rely on modifier keys (such as ctrl, shift, etc) when using this type of key
bindings.
Save/Load Key Bindings¶
bind save
bind load