Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Custom CommandsNew to Visual Studio Code? Get it now.
Custom Commands

Custom Commands

Angus McRitchie

|
713 installs
| (1) | Free
Write custom commands to run using Ctrl + Shift + P.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

custom-commands README

Adds one command to the Command Palate (Ctrl/Cmd + Shift + P) called "Custom Commands: Run... which lists out your commands you define in your VS Code settings customCommands.commands, when you select one, it runs it.

Great for project level commands, like starting docker from a specific docker-compose file, or running a specific npm script.

Usage

Custom Commands usage example

Release Notes

0.0.3

Added command.runOnStartup and command.runOnShutdown options Added usage example to readme

0.0.4

Added VS Code variables to command arguments (e.g. ${selectedText}) so you now write a command like ping ${selectedText} - thanks @vince1024 for the idea/request!

0.0.5

Added new variables to use in command arguments - thanks @yiqingpeng for the request!

  • ${fileDirname}
  • ${workspaceFolder}

0.0.6

Fix directory separator bug for Windows for {folder} and ${workspaceFolder} variables.

Enjoy!

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