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

Command Tasks

Dennis Lambe Jr.

|
7 installs
| (0) | Free
Execute commands built into Visual Studio Code or provided by extensions as Tasks.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Command Tasks

Execute Visual Studio Code built-in commands or commands provided by extensions as Tasks.

Features

Adds a new task type, vscode-command, which can be used to configure tasks in task.json that run Visual Studio Code commands or commands from extensions as tasks, allowing them to appear in the list of tasks presented by the "Tasks: Run Task" command or used as a preLaunchTask or postDebugTask in a launch.json configuration, for example.

Parameters

  • command: the identifier of the command to run.
  • args: an optional array of arguments to pass to the command.

Example

{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "find my favorite string",
            "type": "vscode-command",
            "command": "editor.actions.findWithArgs",
            "args": [
                {
                    "searchString": "Hello World",
                    "isCaseSensitive": true
                 }
            ]
        },
    ]
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft