Module 30: VS Code Integration
Run your Java ACP agent in VS Code using the community vscode-acp extension.What You’ll Learn
- Installing the vscode-acp extension
- Creating a PATH-discoverable wrapper script
- The differences between VS Code, Zed, and JetBrains ACP configuration
Prerequisites
- VS Code installed
- Java 17+
The Agent
Same code as Modules 28-29. No code changes needed for different editors.Build and Configure
1. Install the vscode-acp extension
Ctrl+Shift+X).
2. Build the JAR
3. Create a wrapper script
The extension auto-detects agents from your PATH. Create a wrapper: Linux/macOS:/absolute/path/to/vscode-agent.jar with the output of:
%USERPROFILE%\bin\java-tutorial-agent.cmd:
4. Use in VS Code
Click the VSCode ACP icon in the Activity Bar, click Connect, select your agent.Configuration Comparison
| IDE | Configuration | Discovery |
|---|---|---|
| Zed | settings.json — direct command + args | Explicit in settings |
| JetBrains | ~/.jetbrains/acp.json — direct command + args | Explicit in config file |
| VS Code | PATH wrapper script | Auto-detected from PATH |