Cursor and Windsurf Setup Guide
December 29, 2025 ยท View on GitHub
This guide provides detailed instructions for installing and using VT Code with Cursor and Windsurf editors.
Overview
VT Code is available for both Cursor and Windsurf through the Open VSX registry. Since both editors support VS Code extensions, the VT Code extension provides the same functionality as in VS Code.
Prerequisites
Before installing the VT Code extension in Cursor or Windsurf, you need to install the VT Code CLI:
# Install with Cargo (recommended)
cargo install vtcode
# Or with Homebrew
brew install vtcode
# Or with NPM
Verify the installation:
vtcode --version
Installation Methods
Method 1: In-Editor Marketplace (Recommended)
For Cursor:
- Open Cursor
- Go to Extensions panel (Ctrl+Shift+X or Cmd+Shift+X)
- Search for "vtcode-companion"
- Click Install
For Windsurf:
- Open Windsurf
- Go to Extensions panel
- Search for "vtcode-companion"
- Click Install
Method 2: VSIX File Installation
If the extension isn't available through the marketplace:
- Download the
.vsixfile from Open VSX - In your editor's Extensions panel, click the "..." menu
- Select "Install from VSIX..."
- Choose the downloaded VSIX file
Method 3: CLI Installation (Cursor Only)
For Cursor, you can also install the extension via CLI:
# Replace with actual version
cursor --install-extension vtcode-companion-<version>.vsix
Configuration
After installation, the VT Code extension should work automatically if:
- The VT Code CLI is installed and in your system PATH
- Your workspace contains a
vtcode.tomlconfiguration file
To create a configuration file:
- Open Command Palette (Ctrl+Shift+P or Cmd+Shift+P)
- Run "VT Code: Open Configuration"
- Configure your AI providers and settings
Features Available
The VT Code extension provides the same features in Cursor and Windsurf as in VS Code:
- Ask the Agent: Send questions to the VT Code AI assistant
- Ask About Selection: Get explanations for selected code
- Quick Actions Panel: Access common VT Code commands
- Terminal Integration: Launch VT Code chat directly in the editor
- Configuration Management: Manage vtcode.toml settings
- Semantic Code Intelligence: AST-based code understanding
Troubleshooting
Extension Not Working
-
Verify VT Code CLI is installed:
vtcode --version -
Ensure VT Code is in your PATH:
which vtcode -
Restart your editor after installing the extension
-
Check that your workspace contains a
vtcode.tomlconfiguration file
CLI Path Issues
If the extension can't find the VT Code CLI:
- In Cursor/Windsurf settings, look for
vtcode.commandPathsetting - Set the full path to your VT Code executable if it's installed in a non-standard location
Configuration Issues
- Make sure your
vtcode.tomlfile is in the root of your workspace - Verify your API keys are properly configured in the configuration file
- Restart the editor after making configuration changes
Support
If you encounter issues:
- Check the main troubleshooting guide
- Join our community Discord
- Open an issue on our GitHub repository
- Verify that your Cursor or Windsurf version supports the VS Code extension format
Updating the Extension
The extension will typically update automatically when new versions are published to Open VSX. You can also manually check for updates in your editor's Extensions panel.
Note: VT Code is designed to work with VS Code-compatible editors through the Open VSX registry. For the best experience, ensure you have the latest version of both the extension and the VT Code CLI.