Skip to main content

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

Or search “VSCode ACP” in the Extensions panel (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:
Replace /absolute/path/to/vscode-agent.jar with the output of:
Windows: Create %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

The same agent JAR works across all three editors. The only difference is how each editor finds and launches the agent.

Native VS Code Support

VS Code does not have native ACP support yet. Microsoft is tracking it in Issue #265496. The community extension provides ACP functionality until native support arrives.

Source Code

View on GitHub

Running the Example