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

Run File Command

NTKhang

|
24 installs
| (0) | Free
Run script files via context menu
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Run File Command

Run File Command Icon

Run File Command

Execute script files directly from VS Code context menu

Features

Run File Command is a Visual Studio Code extension that allows you to execute different types of script files directly from the explorer context menu.

  • Run script files with a single click
  • Option to run scripts with administrator privileges
  • Support for multiple file types and operating systems
  • Simple and intuitive context menu integration

Supported File Types

Windows

  • .bat & .cmd - Batch files
  • .ps1 - PowerShell scripts
  • .exe - Executable files
  • .py - Python scripts
  • .js - JavaScript files

Linux/macOS

  • .sh - Shell scripts
  • .py - Python scripts
  • .js - JavaScript files
  • Executable files without extension

Screenshots

Windows Context Menu

Installation

  1. Open VS Code
  2. Go to Extensions (Ctrl+Shift+X)
  3. Search for "Run File Command"
  4. Click Install
  5. Reload VS Code when prompted

Alternatively, you can download the .vsix file and install it manually through the "Install from VSIX..." command in VS Code.

Usage

  1. Right-click on any supported file in the Explorer view
  2. Select one of these options from the context menu:
    • "Run this file command" - Execute the file normally
    • "Run as administrator" - Execute the file with elevated privileges

Requirements

  • Visual Studio Code 1.70.0 or newer

Extension Settings

This extension doesn't add any configurable settings yet.

Known Issues

  • On macOS, administrator privileges might require additional permission dialogs

License

This extension is licensed under the included license.


Made by ntkhang03

If you find this extension useful, consider starring the repository!

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