|
| 1 | +--- |
| 2 | +display_name: JetBrains Plugin Installer |
| 3 | +description: Companion module for coder/jetbrains that automatically installs JetBrains Marketplace plugins. |
| 4 | +icon: ../../../../.icons/jetbrains.svg |
| 5 | +tags: [ide, jetbrains, plugins] |
| 6 | +--- |
| 7 | + |
| 8 | +# JetBrains Plugin Installer |
| 9 | + |
| 10 | +A companion module for |
| 11 | +[coder/jetbrains](https://registry.coder.com/modules/jetbrains) that |
| 12 | +automatically installs JetBrains Marketplace plugins into your workspace. |
| 13 | + |
| 14 | +Use this alongside the core `coder/jetbrains` module — it handles plugin |
| 15 | +installation while `coder/jetbrains` handles IDE setup and Toolbox |
| 16 | +integration. |
| 17 | + |
| 18 | +```tf |
| 19 | +module "jetbrains_plugins" { |
| 20 | + count = data.coder_workspace.me.start_count |
| 21 | + source = "registry.coder.com/harsh9485/jetbrains-plugins/coder" |
| 22 | + version = "0.1.0" |
| 23 | + agent_id = coder_agent.main.id |
| 24 | +
|
| 25 | + jetbrains_plugins = { |
| 26 | + "PY" = ["com.koxudaxi.pydantic", "com.intellij.kubernetes"] |
| 27 | + } |
| 28 | +} |
| 29 | +``` |
| 30 | + |
| 31 | +## Prerequisites |
| 32 | + |
| 33 | +- The [coder/jetbrains](https://registry.coder.com/modules/jetbrains) |
| 34 | + module (or equivalent JetBrains Toolbox setup) must already be |
| 35 | + configured in your template. |
| 36 | +- `jq` must be available on `PATH`. |
| 37 | +- Linux environment only. |
| 38 | + |
| 39 | +## Finding Plugin IDs |
| 40 | + |
| 41 | +Open the plugin page on the |
| 42 | +[JetBrains Marketplace](https://plugins.jetbrains.com/). Scroll to |
| 43 | +**Additional Information** and copy the **Plugin ID**. |
| 44 | + |
| 45 | +## Usage |
| 46 | + |
| 47 | +```tf |
| 48 | +module "jetbrains" { |
| 49 | + count = data.coder_workspace.me.start_count |
| 50 | + source = "registry.coder.com/coder/jetbrains/coder" |
| 51 | + version = "1.4.0" |
| 52 | + agent_id = coder_agent.main.id |
| 53 | + folder = "/home/coder/project" |
| 54 | + default = ["PY", "GO"] |
| 55 | +} |
| 56 | +
|
| 57 | +module "jetbrains_plugins" { |
| 58 | + count = data.coder_workspace.me.start_count |
| 59 | + source = "registry.coder.com/harsh9485/jetbrains-plugins/coder" |
| 60 | + version = "0.1.0" |
| 61 | + agent_id = coder_agent.main.id |
| 62 | +
|
| 63 | + jetbrains_plugins = { |
| 64 | + "PY" = ["com.koxudaxi.pydantic", "com.intellij.kubernetes"] |
| 65 | + "GO" = ["org.jetbrains.plugins.go-template"] |
| 66 | + } |
| 67 | +} |
| 68 | +``` |
| 69 | + |
| 70 | +The keys in `jetbrains_plugins` are IDE product codes (`PY`, `GO`, `IU`, |
| 71 | +etc.) matching the codes used by the `coder/jetbrains` module. Each value |
| 72 | +is a list of Marketplace plugin IDs to install for that IDE. |
| 73 | + |
| 74 | +> [!IMPORTANT] |
| 75 | +> After installing the IDE, restart the workspace. On the next start the |
| 76 | +> module detects installed IDEs and automatically installs the configured |
| 77 | +> plugins. |
| 78 | +
|
| 79 | +Some plugins may be disabled by default due to JetBrains security |
| 80 | +defaults — you might need to enable them manually in the IDE. |
0 commit comments