Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>WashNew to Visual Studio Code? Get it now.
Wash

Wash

kmmz1127

|
8 installs
| (0) | Free
Web Unix-like Shell for VSCode for Web
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Wash for VS Code

English | 日本語

A Unix-like terminal for VSCode for Web, powered by Wash. Run common shell commands and work with workspace files in your browser.

  • https://marketplace.visualstudio.com/items?itemName=kmmz1127.vscode-wash
  • https://open-vsx.org/extension/kmmz1127/vscode-wash
image

Getting started

The extension ID is kmmz1127.vscode-wash. To try a local build, follow the development instructions.

  1. Open a folder in VSCode for Web.
  2. Run Wash: Open Terminal from the Command Palette, or select the Wash terminal profile.
  3. Run pwd to see the current directory. Try ls, cat, or grep --help for common file and text operations.

Use ↑ and ↓ for command history. Home, End, Delete, Ctrl+A, Ctrl+E, Ctrl+U, Ctrl+K, Ctrl+W, and Ctrl+L edit the command line. Tab completes command names and paths. Pasted lines run in order. exit closes the terminal, including in a line such as make; exit. Ctrl+D on an empty line also closes it. Ctrl+C interrupts supported commands. Commands that support interactive input also accept Ctrl+D to signal end of input.

Bundled make

Wash includes a make command. It reads Makefile (or makefile, GNUmakefile) and rebuilds targets whose prerequisites are newer.

  • Variables (=, :=, ?=, +=, !=, command-line assignments), substitution references, and common functions such as wildcard, patsubst, foreach, call, and shell
  • Explicit rules, pattern rules, .PHONY, include, and conditionals (ifeq, ifneq, ifdef, ifndef)
  • Built-in rules for C and C++ that use $(CC) (default cc) and $(CXX) (default g++)
  • Options -f, -C, -n, -B, -s, and -k. -j is accepted, but recipes run one at a time

eval and file are not supported. With Like-C, cc and g++ compile C and C++ to WebAssembly.

Git

To use git in Wash, install Wash Git. It works with local repositories and does not support remote operations.

Workspace and storage

Location Behavior
/workspace With one folder, Wash mounts it here and starts in this directory. With multiple folders, each appears at /workspace/<folder-name>.
/etc, /home, /usr/bin Stored in extension storage and shared by later terminals.
/tmp Separate for each terminal.

With no workspace mount, a new terminal starts in its home directory. To run a shell script by name, place it in ~/bin and use chmod +x ~/bin/script. Wash stores the permission in extension storage and preserves it across renames within the same persistent mount.

Settings

Set wash.workspaceMount in VS Code Settings. Changes apply to terminals opened afterward.

Value Workspace access
readWrite (default) Read and write workspace files.
readOnly Read workspace files.
disabled Skip mounting workspace folders.

wash.history.persistence controls command history. The default, persistent, saves history to ~/.wash_history and restores it in new terminals, as bash does with ~/.bash_history. session keeps history only while the terminal is open. wash.history.size sets the number of saved commands (default 1000). Commands that start with a space and repeated commands are not added.

Register a command from another extension

Activate kmmz1127.vscode-wash and use its registerCommand API. Registered commands and aliases take effect from the next input line, including in terminals that are already open. Type definitions are in src/api.ts, which depends only on vscode.

  • Command and alias names may contain letters, digits, _, +, and -. registerCommand and registerAlias throw when the name is already registered.
  • A command can use fs in its context to access files in the Wash path space, and exec to run a line in the same shell.
  • ctx.toUri(path) converts a Wash path to a vscode.Uri, for example to show diagnostics. It returns undefined for in-memory paths such as /tmp.
  • A command can set description, shown in completion lists, and complete(args, ctx), which returns candidates for the word being typed.
  • api.version reports the API version. The current version is 1. See docs/api.md for the versioning policy.
const wash = vscode.extensions.getExtension("kmmz1127.vscode-wash");
if (wash) {
  const api = await wash.activate();
  context.subscriptions.push(api.registerCommand({
    name: "hello",
    run: async (args: string[]) => ({
      stdout: `hello ${args.join(" ")}\n`,
      stderr: "",
      exitCode: 0,
    }),
  }));
}

Limitations

  • The browser build currently excludes gzip-related commands.
  • Interactive input requires a command that uses Wash's terminal I/O API. Programs such as Like-C can declare browser requirements of their own.

Development

npm ci
npm run web

Use npm run typecheck and npm run test:web for local checks. In desktop VS Code, Run Web Extension launches a Web extension development host. To build an unpublished VSIX, run npm exec --package @vscode/vsce -- vsce package --no-dependencies. The VSIX includes the browser bundle and notices.

See the requirements, design, and release tasks.

Bug reports and feature requests

Include the browser version, the command you ran, and a minimal reproduction. vscode-wash issues

License

MIT. See THIRD_PARTY_NOTICES for the licenses included with the browser bundle.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft