Skip to content

Commit

Permalink
Add screenshots to DEV_IDE_SETUP.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerhu committed Sep 13, 2023
1 parent c6a848f commit ff3e314
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions DEV_IDE_SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,35 @@ Most of the time, the IntelliJ Platform Plugin SDK bundled with your IntelliJ in

To install it, please head to the SDK menu (`Cmd+;` or `Ctrl+;`), and then to `Platform Settings -> SDKs`.

In the list of SDKs, press the `+` icon, then `Add IntelliJ Platform Plugin SDK`. A file explorer window should open in the `Contents` directory of your IntelliJ installation. Select that directory.
In the list of SDKs, press the `+` icon, then `Add IntelliJ Platform Plugin SDK`.

<img width="1021" alt="image" src="https://github.com/bazelbuild/intellij/assets/326857/d5323a70-d93b-4734-a64c-d8018e19adc1">

A file explorer window should open in the `Contents` directory of your IntelliJ installation. Select that directory.

<img width="655" alt="image" src="https://github.com/bazelbuild/intellij/assets/326857/ce7b591f-ca51-42e5-8038-07f2a102a700">

Make sure that the `Internal Java Platform` is set to the JDK you want to use to develop your plugin. It is recommended to use JBR 17.

<img width="463" alt="image" src="https://github.com/bazelbuild/intellij/assets/326857/d276ca32-9b63-478f-9805-47bbf1295e2b">

## Set the project-wide SDK

Inside IntelliJ, go to the SDK menu (`Cmd+;` or `Ctrl+;`).

Go to `Project`, and look under `SDK` to find the JetBrains Runtime SDK installed in the previous step.

<img width="1019" alt="image" src="https://github.com/bazelbuild/intellij/assets/326857/356b1d93-b9a5-4366-9ed4-6b0a967d3fee">

## Create a run configuration and add appropriate flags

Once the project is imported, create a new Run configuration: `Run -> Edit Configurations...`.
Click the `+` sign, and create a new `Bazel IntelliJ Plugin` run configuration.

Click the `+` sign, and create a new `Bazel IntelliJ Plugin` run configuration (the Bazel IntelliJ plugin needs to be installed):

<img width="1038" alt="image" src="https://github.com/bazelbuild/intellij/assets/326857/b1710978-437f-47ee-a490-ea0d1ab39985">

Configure the `Plugin SDK` field to use the SDK you've just installed.

<img width="1031" alt="image" src="https://github.com/bazelbuild/intellij/assets/326857/92e107d3-e9f6-479c-a127-4f4202b21f41">

0 comments on commit ff3e314

Please sign in to comment.