Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Tasks chooserNew to Visual Studio Code? Get it now.
Tasks chooser

Tasks chooser

Jérémy Faivre

|
480 installs
| (0) | Free
Allow to choose from multiple tasks quickly
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Tasks chooser

Allow to choose tasks and change default build command from status bar.

Screenshot

How it works

The idea is to be able to quickly change .vscode/tasks.json contents in order to bind a different command to, let's say CMD/CTRL+SHIFT+B.

Everything is configured from a single JSON file located at .vscode/tasks-chooser.json (relative to your workspace root). You can see an example at example/.vscode/tasks-chooser.json.

When a .vscode/tasks-chooser.json file is provided, an item appears on the status bar allowing to choose between items/targets. Everytime a target is selected, .vscode/tasks.json is updated accordingly.

.vscode/tasks.json content is computed by merging the selected item and it's baseItem (if provided) from .vscode/tasks-chooser.json. baseItem is provided as a convenience to allow us to share keys that are identical between items without having to rewrite them for each item.

How it works

Commands

tasks-chooser.reload Reloads the tasks-chooser.json file and updates the status bar item. Note that the status bar item is already updated automatically when changing tasks-chooser.json file.

tasks-chooser.select Select between available items/targets. This is the command run when clicking on the status bar item.

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