Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>ComInt: Shell in a TextEditorNew to Visual Studio Code? Get it now.
ComInt: Shell in a TextEditor

ComInt: Shell in a TextEditor

Jeff Gran

|
265 installs
| (0) | Free
Inspired by Emacs' comint-mode. Your keyboard shortcuts all work because it's just a regular text editor, with a shell inside.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

comint README

Inspired by Emacs' comint-mode. Your keyboard shortcuts all work because it's just a regular text editor, with a shell inside.

Features

Run a shell (or other repl) in a text editor.

  • Use commands comint.inputRingPrevious and comint.inputRingNext like your up/down arrows in the terminal emulator, to cycle through previous commands.
  • Use command comint.sendCtrlC to send a control-c signal to the process.
  • ANSI/SGR codes for colors and some cursor movement are rendered properly (or ignored if they do not apply).
  • tab-completion for bash kinda works, but only for stty -echo for now.

Roadmap

See notes/comments at the top of extension.ts. TODO move them somewhere better.

Requirements

This doesn't work in vscode.dev or similar. You must have the ability to run an interactive process.

Extension Settings

This extension contributes the following settings:

  • comint.shellFile:
  • comint.shellFileArgs:
  • comint.shellInitCommands:
  • comint.promptRegex:

Known Issues

Only tested on osx with bash 5.x

Unknown Issues

Several.

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