Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>EventsNew to Visual Studio Code? Get it now.
Events

Events

Preview

Felicio Mununga

|
3,353 installs
| (0) | Free
Execution of commands on events emitted by Visual Studio Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VS Code Events

Execution of commands on events emitted by Visual Studio Code

About

Currently supported events:

  • onDidStartDebugSession
  • onDidTerminateDebugSession

Usage (settings.json)

Conditionally toggle status bar visibilty on starting and stopping debugging:

"events.configurations": [
  {
    "event": "onDidStartDebugSession",
    "commands": [
      {
        "command": "workbench.action.toggleStatusbarVisibility",
        "conditions": [
          {
            "configuration": "workbench.statusBar.visible",
            "value": false
          }
        ]
      }
    ]
  },
  {
    "event": "onDidTerminateDebugSession",
    "commands": [
      {
        "command": "workbench.action.toggleStatusbarVisibility",
        "conditions": [
          {
            "configuration": "workbench.statusBar.visible",
            "value": true
          }
        ]
      }
    ]
  }
]
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft