Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Event Command MapperNew to Visual Studio Code? Get it now.
Event Command Mapper

Event Command Mapper

Andrew Richardson

|
300 installs
| (0) | Free
Bind commands to VSCode events via user settings
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Event / Command Mapper

This extension allows commands to be bound to vscode events via settings.

Usage

Example: The following opens the debug view when starting a debugging session and toggles the sidebar visibility when the debug session is terminated

    "eventCommandMapper.eventMaps": [
        {"event":"vscode.debug.onDidTerminateDebugSession", "command":"workbench.action.toggleSidebarVisibility"},
        {"event":"vscode.debug.onDidStartDebugSession", "command":"workbench.view.debug"}
    ],

Once a new mapping has added you will need to reload VSCode which can be done via the reload window command

The easiest way to find vscode events is via VSCode API

The easiest way to find commands is by using the keyboard shortcuts UI within VSCode, if the command isn't shown under the keybinding then right click the keybind > copy command ID

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft