A VS Code extension that automatically detects and exposes your IDE environment information as context variables. Perfect for creating cross-editor compatible extensions and configurations.
- Automatic IDE Detection: Identifies which VS Code-based editor you're using (VSCode, Cursor, Windsurf, VSCodium, Trae, Kiro, Antigravity, and more)
- Version Detection: Provides IDE version information for version-specific configurations
- URI Scheme Support: Exposes the IDE's URI scheme for deep linking and protocol handling
- Context Variables: Sets
editorcontext variables that can be used in:- Keybindings (
whenclauses) - Settings configurations
- Extension conditions
- Custom commands
- Keybindings (
- Visual Studio Code
- Visual Studio Code - Insiders
- VSCodium
- Cursor
- Windsurf
- Antigravity
- Trae
- Kiro
Once installed, the extension automatically sets context variables based on your detected IDE:
editor.app- The full application nameeditor.uri- The URI scheme used by the IDEeditor.version- The IDE version number (e.g., 1.60)editor.${key}- Set totruefor the specific IDE (e.g.,editor.cursor,editor.windsurf)editor.unsupported- Set totrueif the IDE is not recognized
{
"key": "ctrl+shift+p",
"command": "cursor.command",
"when": "editor.cursor"
}{
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"when": "editor.vscode"
}
}