Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Env IndicatorNew to Visual Studio Code? Get it now.
Env Indicator

Env Indicator

dkurokawa

|
4 installs
| (0) | Free
Visual indicator showing whether you're working locally or via SSH Remote
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Env Indicator

Instantly see whether you're working on your local machine or a remote SSH host — with both a status bar label and automatic title bar coloring.

No more accidentally running commands on the wrong machine.

Features

  • Auto-detects environment — Local vs Remote SSH, no configuration needed
  • Title bar coloring — Automatically colors the title bar based on environment (green for local, red for SSH)
  • Customizable color targets — Apply colors to title bar, activity bar, and/or status bar
  • Customizable labels — Choose between HOST:, LOCAL:, or emoji prefixes
  • SSH host in UPPERCASE — Visual distinction at a glance
  • Click to open terminal — Opens a terminal at your workspace root
  • Real-time settings — All changes apply instantly, no reload required
  • Zero dependencies — Lightweight, runs entirely within VS Code

Label Examples

Environment Label Type Output
Local HOST (default) HOST: mac-mini-m4
Local LOCAL LOCAL: mac-mini-m4
Local Emoji 💻 mac-mini-m4
SSH Remote HOST / LOCAL SSH: MAC-MINI-M4
SSH Remote Emoji 🔗 MAC-MINI-M4

Installation

From VSIX (local install)

code --install-extension vscode-env-indicator-0.3.0.vsix

Or in VS Code: Ctrl+Shift+P → Extensions: Install from VSIX...

Settings

Setting Type Default Description
envIndicator.colorEnabled boolean true Enable automatic UI coloring based on environment
envIndicator.localColor string #003200 Background color for local environment (hex)
envIndicator.remoteColor string #460000 Background color for SSH remote environment (hex)
envIndicator.colorTarget array ["titleBar"] UI elements to colorize: titleBar, activityBar, statusBar
envIndicator.labelType HOST | LOCAL | Emoji HOST Label format for the environment display
envIndicator.showSshPrefix boolean true Show SSH: prefix when connected via Remote SSH
envIndicator.position Center-Left | Right Center-Left Status bar item position

Example settings.json

{
  "envIndicator.colorEnabled": true,
  "envIndicator.localColor": "#003200",
  "envIndicator.remoteColor": "#460000",
  "envIndicator.colorTarget": ["titleBar", "activityBar"],
  "envIndicator.labelType": "Emoji",
  "envIndicator.position": "Center-Left"
}

Note: Title bar coloring requires window.titleBarStyle to be "custom" (not the OS native title bar) on macOS/Linux.

Commands

Command Description
Env Indicator: Open Terminal at Workspace Root Opens a new terminal at the first workspace folder

How It Works

  • On local machines, the extension reads os.hostname() and displays it with your chosen label format. The title bar turns green (default).
  • On Remote SSH connections, VS Code runs the extension on the remote host. The extension detects vscode.env.remoteName === 'ssh-remote' and displays the remote hostname in UPPERCASE. The title bar turns red (default).
  • Color customizations are written to the workspace .vscode/settings.json. The extension only manages its own color keys and preserves any existing customizations.
  • All settings react to changes immediately — no window reload needed.

Requirements

  • VS Code 1.85.0 or later
  • For SSH detection: Remote - SSH extension

License

MIT

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