# Use IntelliJ IDEA or VS Code

> Open a workspace in IntelliJ IDEA with plinto's plugin, or in VS Code with its extension, and build from there.

Both read your workspace the way `plinto` does: each project is a module, with the libraries and the JDK your version group pins.

## IntelliJ IDEA {#intellij}

The plugin works in IntelliJ IDEA 2026.2 or newer, and in the other JetBrains IDEs of that version.

1. In plinto's **Downloads**, copy the plugin repository's address.
2. In the IDE: **Settings → Plugins → ⚙ → Manage Plugin Repositories…**, and add it.
3. Install **plinto** from the **Marketplace** tab, and restart the IDE. New versions then come as updates, like any plugin's.

Open a workspace from its folder, or from the terminal:

```sh
$ plinto idea
```

opens the workspace you are in, in the newest IntelliJ IDEA that has the plugin.

- **New Project › plinto workspace** makes a workspace of a version group and clones the packages you pick into its `src`.
- **Build** runs `plinto build --release-dependencies`, so a project builds against the code of the projects it needs, as it is.
- The **plinto** tool window has each project's build, release and clean, and run for programs.
- When the group gets a new revision, the IDE offers to update the workspace to it.
- **Cmd+click** (Ctrl+click) on a package in a `plinto.conf` opens it in plinto code, and on a version the release your builds take for it. **Copy Path/Reference › plinto Code Link** copies the link to a file or folder there, at your clone's branch, and from the editor at the caret's line.

The IDE asks whether you trust a project you open. In one you opened in **Safe Mode**, the plugin still highlights and checks `plinto.conf`, but it asks plinto nothing and runs nothing: no sync, no completion from the version group, no build, no task. Its requests carry your access key, and a sync loads the build systems the workspace names, so **Trust Project** comes first.

The plugin uses the repository it was built with. To use another, such as a local `http://localhost:8080`, name it by the workspace's folder in `plinto-repositories.xml`, in the `options` folder of the IDE's configuration directory, with the IDE closed:

```xml
<application>
  <component name="PlintoRepositoryOverrides">
    <option name="repositories">
      <map>
        <entry key="/Users/you/workspaces/orders" value="http://localhost:8080" />
      </map>
    </option>
  </component>
</application>
```

It is the IDE's own setting, on this machine only, as VS Code's `plinto.repository` is: no file of a project sets it. Earlier versions of the plugin kept it in the project's `.idea/workspace.xml`, which is no longer read: set it again here.

## VS Code {#vscode}

1. Download the extension from plinto's **Downloads**: a `.vsix` file.
2. Install it with **Extensions → ⋯ → Install from VSIX…**, or:

```sh
$ code --install-extension plinto-vscode.vsix
```

The extension starts `plinto ide-server`, so it needs the command line too. It checks `plinto.conf` and `plinto-workspace.conf` as you type and completes their keys; **plinto: Load Workspace** reads the workspace, and the build task runs plinto as the IDE does. Cmd+click and **Copy plinto Code Link** open and copy plinto code links as in IntelliJ. For Java, install **Language Support for Java by Red Hat**, which it hands the projects to.

- [Install and sign in](../start/install.md): the command line both use
- [Workspaces](../concepts/workspaces.md): what the editors open
- [Java](../languages/java.md): what a JVM project looks like
