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

Run Command

Stephen Sigwart

|
1,576 installs
| (0) | Free
Run a command with the current selection as the input
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Run Command VSCode Extension

This extension allows you to run any shell command on the selected text.

Features

  • Run a command with stdin being the selected test and either:
    • Replace the selection with the output.
    • Show the output.

Example Usage

Example Usage

Useful Commands

  • grep term - Remove all lines from the selection that don’t include term.
  • grep -v term - Remove all lines from the selection that include term.

Warning!

Because this extension will run whatever command you enter, be careful with what command you run and do not blindly paste commands from others.

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