"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'
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:
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:"
"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:"
"If you feel like your solution is all messed up and you want to start over, click this button:"
"If you want to discuss your solution (or lack thereof) with other students, click this button:"
"And if you feel you can't do it without help from your fellow students, don't hesitate to use this button:"
"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."
Install Oracle JDK 8 instead of OpenJDK 8
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 email@example.com or using chat widget in the lower right corner of the page.