Skip to content

Commands

There are two categories of commands available in Master Key: the user commands and the keybinding commands.

User Commands

User commands take no arguments and generally interact with the user-interface of VSCode.

  • Master Key: Key Suggestions... (master-key.commandSuggestions) — Display a list of possible key presses which follow from the current prefix of keys pressed so far.

  • Master Key: Toggle Key Suggestions (master-key.toggleSuggestions) — Display or hide a list of possible key presses which follow from the current prefix of keys pressed so far. Assumes the primary sidebar is used to display the bindings (the bar on the left side).

When hidden, this makes the binding visible. When already visible, this command hides the sidebar, which is where the key suggestions are placed by default.

Extensions do not control where tree views show up. The user is able to explicitly move these views around as they see fit, and Master Key has no visibility into this choice. Users wishing to keep the key suggestions in the right pane, can use the command master-key.toggleSuggestionsInAuxiliaryBar.

  • Master Key: Toggle Key Suggestions (master-key.toggleSuggestionsInAuxiliaryBar) — Display or hide a list of possible key presses which follow from the current prefix of keys pressed so far. Assumes the auxiliary sidebar is used to display the bindings (the bar on the right side).

When hidden, this makes the binding visible. When already visible, this command hides the auxiliary sidebar. Users wishing to use this command to toggle suggestions should first move the key suggestions over to the auxiliary bar.

Extensions do not control where tree views show up. The user is able to explicitly move these views around as they see fit, and Master Key has no visibility into this choice. Users wishing to keep the key suggestions in the left pane, can use the command master-key.toggleSuggestions.

  • Master Key: Toggle Visual Doc Modifier by frequency (master-key.toggleVisualDocModifiers) — In the visual documentation view, cycle through the possible keybinding modifiers based on how frequently they are used in the current set of keybindings.

  • Master Key: Activate Keybindings in Current File (master-key.activateCurrentFile) — Insert the master key bindings in the current file into VSCode, making them active

  • Master Key: Activate Keybindings (master-key.activateBindings) — Insert your master key bindings into VSCode, making them active

  • Master Key: Deactivate Keybindings (master-key.deactivateBindings) — Remove your master key bindings from VSCode

  • Master Key: New Keybinding Copy (master-key.editPreset) — Edit a new copy of a given master keybinding preset.

  • Master Key: Import User Bindings (master-key.importUserBindings) — Import user bindings from VSCode's global keybindings file (keybindings.json)

  • Master Key: Import Default Bindings (master-key.importDefaultBindings) — Import default bindings from VSCode's default keybindings file

  • Master Key: Install Extensions Required by Keybindings (master-key.installRequiredExtensions) — Install extensions required by your keybindings, as defined in the requiredExtensions field.

  • Master Key: Show Visual Documentation (master-key.showVisualDoc) — Documents keybindings on a keyboard layout shown in the bottom panel of your editor.

  • Master Key: Show Text Documentation (master-key.showTextDoc) — Show documentation for the current master keybindings in a rendered markdown file.

Keybinding Commands

Keybinding commands usually have at least one argument and are expected to primarily be used when defining keybindings in a master keybinding TOML file.

State Management

Inputting Strings

Searching for Strings

Performing Actions

Set Mode

Recording and Replaying Commands