-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
63 additions
and
11 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Develop with JetBrains IDE | ||
|
||
> This guide describes how to use IntelliJ IDEA in the JetBrains IDE to develop a Java-based Devbox. | ||
## Prerequisites | ||
|
||
1. Download the [JetBrains Gateway](https://www.jetbrains.com/remote-development/gateway/) application. | ||
|
||
2. Start a Devbox project. | ||
|
||
3. Download the private key of the Devbox project to your local computer. View the SSH configuration in the Devbox project detail (Username: devbox, Host: hzh.sealos.run, Port: 30566). | ||
|
||
![use-jb-ide-2](./images/use-jb-ide-2.png) | ||
|
||
## Get Started | ||
|
||
1. Open Devbox, select JetBrains IDE and click on it. | ||
|
||
![use-jb-ide-3](./images/use-jb-ide-3.png) | ||
|
||
2. Automatically invoke the local JetBrains Gateway and click `New Connection`. | ||
|
||
![use-jb-ide-4](./images/use-jb-ide-4.png) | ||
|
||
3. Open JetBrains Gateway, fill in Username, Host and Port, check Specify private key, and select the path to the private key. Click `Check Connection and Continue` to test the SSH connection. | ||
|
||
![use-jb-ide-5](./images/use-jb-ide-5.png) | ||
|
||
4. Select `IntelliJ IDEA 2024.3.1 Preview` for the IDE version and `/home/devbox/project` for the project path. Click Download IDE and Connect to download the IDE and connect. | ||
|
||
![use-jb-ide-6](./images/use-jb-ide-6.png) | ||
|
||
You need to wait for the IDE to download. | ||
|
||
![use-jb-ide-7](./images/use-jb-ide-7.png) | ||
|
||
5. Automatically invoke the local IntelliJ IDEA, select English as the language, open the project file, and click the green arrow to run the Java service. | ||
|
||
![use-jb-ide-8](./images/use-jb-ide-8.png) | ||
|
||
![use-jb-ide-9](./images/use-jb-ide-9.png) | ||
|
||
6. Open the detail of the Devbox project and click the public address to access the Java service. | ||
|
||
![use-jb-ide-10](./images/use-jb-ide-10.png) | ||
|
||
7. Successfully accessed the Java service. | ||
|
||
![use-jb-ide-11](./images/use-jb-ide-11.png) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters