Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>easy-shellNew to Visual Studio Code? Get it now.
easy-shell

easy-shell

inu1255

|
9,131 installs
| (1) | Free
easy exec shell cmd in vscode editor and get the output
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

easy-shell

run select text as shell command and replace the select text with the stdout

Features

default keymaps cmd+. cmd+e

  1. exec shell command such as ls -l(it will be replaced by the stdout)
  2. exec js code such as 1+2(it will be replaced by the result 3)
  3. you can define your own scripts in somefile.js and config easyShell.extraModulePath in vscode settings
  4. you can switch shell by config easyShell.shellPath in vscode settings
  5. you can use $FILE,$WORKSPACE,$CLIPBOARD in shell command, in windows you can use %FILE%,%WORKSPACE%,%CLIPBOARD%

Extra Module

create somefile.js in some path such as /home/xxx/somefile.js

// /home/xxx/somefile.js
module.exports = {
  hello: () => "world",
};

config easyShell.extraModulePath in vscode settings

{
  "easyShell.extraModulePath": "/home/xxx/somefile.js"
}

then you can use es.hello or es.hello()

more usage see esdemo.js

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