1. Download the archive
You have downloaded the CodeGym archive , unpacked it and you see the following two folders: The
CodeGymHomeWork folder contains a project template in which you will solve problems.
The CodeGymIdeaPlugin folder contains a plugin that needs to be connected to IntelliJ IDEA (Idea).
2. Open a project
Open Idea. Go to menu
File -> Open... . Open the path where the archive was unpacked. Click on the CodeGymHomeWork folder and press the
OK button .
An open project looks like this:
3. Set up the project
Open the project settings
File -> Project Structure... . Set
Project language level to
7.0
In Modules also set
the Language level to
7.0 . Remove the
.idea folder from the project, for which you need to select it and click
Excluded .
In SDKs, if there is nothing there, click on the green
+ at the top, select JDK from the drop-down list and specify
the path to java . Click
OK .
Attention! On the java7 course, put version 7 so that there are no problems with the settings. When the project is translated to java8, we will inform about it. Make sure
the JDK home path is the path to your java. In the
Classpath tab , click the green
+ on the right. Connect all jars from *path to java*/jre/lib Press the
Apply button and reload the project.
4. Connect the plugin
Open the Idea settings
File -> Settings... for Plugins and click
the Install plugin from disk... button .
Select the path to the plugin
IdeaPlugin.jar , which is located in the lib folder inside CodeGymIdeaPlugin (see step 1) and click the OK button.
Apply the new settings by clicking on
Apply and
reopen the Idea - click Restart .
5. Testing the plugin
There are two new buttons:
- press the left button (striped) to get a list of your tasks
- press the right button (tick) to submit the task for review
Important informationThe CodeGymPlugin.properties file contains your private key, don't show it to anyone. You can always log into your account using it. Happy learning!