"I'd like to tell you how to do your homework with IntelliJ IDEA. I'm sure you'll soon appreciate how powerful it is. For starters, let's stick to the following procedure."

Installing the Plugin

Step 1. Click the 'Download plugin' link.

Step 2. Run IntelliJ IDEA. Go to File -> Settings, and find Plugins. For MacOS, click IntelliJ IDEA -> Preferences -> Plugins.

Step 3. Click on the gear and select 'Install plugins from disk'

Connecting IntelliJ IDEA - 1

Step 4. Open the folder where you downloaded the plugin (CodeGymIdeaPlugin.jar). Select the plugin, and click OK.

Step 5. Restart IntelliJ IDEA (Restart IntelliJ IDEA -> Apply -> OK -> Restart)

You've successfully installed the CodeGym plugin for IntelliJ IDEA.

Working with the Plugin

"After IDEA restarts, you will see a new group of six buttons. These buttons are what you will work with. Here's what you need to do.

Step 1. Open the list of available tasks by pressing the following button:

Connecting IntelliJ IDEA - 2

If this is the first time you've done this, a 'New Project' window will pop up. In this case, you are prompted to load the CodeGymTasks project.

Step 2. Select the folder where you will store your project. You will then see short explanations about the six buttons.

Step 3. Now you can see the list of available tasks. If it's empty, then it's time to move on with the course: you've already completed all the tasks in this stage.

Step 4. Select an available task from the list and click OK.

Step 5. A window with two tabs pops up. One contains the task conditions, and the other tab (Solution) is where you enter your code. That's it! Now you're ready to start working on the task.

Step 6. Enter your solution.

Step 7. Now you can submit the task to your mentor for verification. Click the checkmark button:"

Connecting IntelliJ IDEA - 3

"If your solution didn't pass the test, you'll see the reason and a list of recommendations. If your solution did pass, congratulations! You'll get dark matter as a reward."

"If you're a student of the Dark Grand Master, you can send the code to your mentor for a style check by clicking this button:"

Connecting IntelliJ IDEA - 4

"If you feel like your solution is all messed up and you want to start over, click this button:"

Connecting IntelliJ IDEA - 5

"If you want to discuss your solution (or lack thereof) with other students, click this button:"

Connecting IntelliJ IDEA - 6

"And if you feel you can't do it without help from your fellow students, don't hesitate to use this button:"

Connecting IntelliJ IDEA - 7

"You'll get help."

"I think I get it. It almost works the same as the Web IDE."
"Absolutely. Have fun with it. And if you still missed something, here's a video on how to install and work with the plugin.

If something isn't clear, here's a how-to video for you:"

Important: You must choose the JDK version in the project settings.

First go to File -> Project Structure, then Project Settings -> Project. In the 'Project language level' section choose '8 - Lambdas, type annotations etc.'

Addition: If you have Linux

"Some students, mainly Linux users, install OpenJDK 8 instead of Oracle JDK 8. Since Open JDK 8 doesn't have a built-in JavaFX library, the CodeGym plugin for IntelliJ IDEA won't be able to work correctly."

Solution 1:

Install Oracle JDK 8 instead of OpenJDK 8

Solution 2:

Install Open JavaFX with a command like this:

sudo apt-get install openjfx

In case you face any issues with the plugin installation or its performance, do not hesitate to contact our support team by e-mail support@codegym.cc or using chat widget in the lower right corner of the page.