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

ItermSmartSelections

Sobr Engineering

|
11 installs
| (0) | Free
Iterm2-style smart selections for vscode
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Iterm Smart Selections README

This extension adds the Iterm2 "smart selections" functionality to vscode terminal windows. This allows for custom regex matching and actions when terminal output is cmd-clicked.

Features

Supported Actions

  • Send Text
  • Open URL

Extension Settings

Include if your extension adds any VS Code settings through the contributes.configuration extension point.

For example:

This extension contributes the following settings:

  • itermsmartselections.openUrlRules: Array of JSON objects where key contains a regex to match, and the value is the URL to open. Use $0-$N to use regex capture groups in output.
  • itermsmartselections.sendTextRules: Array of JSON objects where key contains a regex to match, and the value is the text to send to the terminal. Use $0-$N to use regex capture groups in output.

Known Issues

Be careful when escaping JSON special chars, such as \b in your regexes. For example, you'll need to use \\b to use match word boundaries.

Release Notes

1.0.0

  • Initial release.
  • Add support for openUrl and sendText actions.

Contributing

Development

  1. Build extension with yarn run watch
  2. Press F5 to Open extension with debugging

Deployment

https://code.visualstudio.com/api/working-with-extensions/publishing-extension#usage

  1. vsce publish {minor|major|patch}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft