Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Easy Code RunnerNew to Visual Studio Code? Get it now.
Easy Code Runner

Easy Code Runner

jptaylor

|
1 install
| (0) | Free
Quickly run npm start from file context menu with terminal management options
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Easy Code Runner

A VS Code extension that adds convenient right-click options to quickly run commands (default: npm start) from any file or folder location in your workspace. Fully configurable with custom commands and terminal name formats.

Features

  • 🚀 Quick command execution: Right-click any folder or file to run your configured command (default: npm start) in that location
  • 🗑️ Close terminals option: Option to close all open terminals before running the command
  • 📁 Smart directory detection: Automatically detects the correct directory from:
    • Right-clicked folder/file
    • Currently active file
    • Workspace root
  • ⚡ Instant terminal: Creates a new terminal at the target location and runs the command

Usage

Method 1: Run Command (Keep Terminals)

  1. Right-click on any folder or file in the Explorer
  2. Select "Run Command"
  3. A new terminal opens at that location and runs your configured command (default: npm start)

Method 2: Run Command (Close All Terminals)

  1. Right-click on any folder or file in the Explorer
  2. Select "Run Command (Close All Terminals)"
  3. All open terminals are closed
  4. A new terminal opens at that location and runs your configured command (default: npm start)

How It Works

  • If you right-click a folder: Runs the configured command in that folder
  • If you right-click a file: Runs the configured command in the file's parent directory
  • If no file/folder is selected: Uses the currently active file's directory
  • If no file is open: Uses the workspace root

Requirements

  • The command specified in easyCodeRunner.defaultCommand must be available in your PATH
  • For npm/yarn commands: Node.js and npm/yarn must be installed
  • A package.json file is recommended for npm/yarn commands, but not required

Extension Settings

This extension has the following settings:

Default Command: Change from npm start to any command (e.g., npm run dev, yarn start, python app.py) Terminal Name Format: Customize how terminals are named: "${command} - ${folderName}" → "npm start - my-project" "${folderName}" → "my-project" "🚀 ${command}" → "🚀 npm start" "${folderName} (${command})" → "my-project (npm start)"

Known Issues

  • The extension will warn if no package.json is found for npm/yarn commands, but will still attempt to run the command
  • Terminal names may be truncated if directory names are very long

Release Notes

1.0.1

Initial release of Easy Code Runner

  • Right-click context menu options for running commands
  • Option to close all terminals before running
  • Smart directory detection from context menu, active file, or workspace

License

MIT

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