CodeGym /Courses /Kotlin SELF /Installing the CodeGym Plugin for IntelliJ IDEA

Installing the CodeGym Plugin for IntelliJ IDEA

Kotlin SELF
Level 5, Lesson 5
Available

1. How to find and install the CodeGym plugin

If IntelliJ IDEA were a smartphone, plugins would be apps that make it truly useful. Plugins expand the IDE's functionality: they add support for new languages, integrate with services, provide tools for code inspection, and even include mini-games (though you shouldn't get carried away with the latter during a deadline).

The CodeGym plugin is a special extension created so that you can solve course tasks directly in IntelliJ IDEA. Imagine: no need to copy code back and forth, no need to constantly switch between your browser and the IDE—everything works in one window! The plugin allows you to:

  • Receive Kotlin tasks right inside your project;
  • Submit solutions for verification with a single click;
  • Instantly see the result: accepted, error, or hint;
  • And, of course, get less distracted by cat videos in your browser (well, almost).

2. Installing and activating the CodeGym plugin

To work with the plugin, you will need version 2025.1 or newer. The CodeGym plugin version must be 251.1.16 or newer.

You can download the CodeGym plugin from the JetBrains Marketplace.

  1. Go to Settings: Windows/Linux File - Settings, macOS IntelliJ IDEA - Preferences. If there is no settings section, open any project or create a new one.
  2. In the window that appears, select the Plugins section in the side menu and open the Marketplace tab. Type codegym in the search bar.
  3. Select the plugin, click the Install button, and agree to the "Third-Party Plugins Notice".

  4. Restart IntelliJ IDEA to start working with the plugin.

  5. You will see a slightly modified interface and a Log in to account button on the top horizontal panel.

    Clicking it will open a login window where you need to enter your secret key. You can find your key in the "Settings" → "Security and Login" section.

    After logging in, the project and the CodeGym SDK will start downloading (it is not recommended to change to another version).

    Trust and Open... is a notification from IntelliJ IDEA's security feature (Project Security). Essentially, IntelliJ IDEA is asking if you trust this project. For CodeGym projects, you can safely click "Trust Project".

  6. To open a new task, click on Tasks in the left vertical panel, then click on the task card in the left sidebar, and click Open in the popup window:

    A window with two tabs has opened in front of you. Solution — the task code file, and Condition — the task requirements.

    Enter your solution to the task and click the Verify button.

"Unresolved reference" or "Kotlin is not configured" errors and configuring Kotlin

After you receive a project from the server and open the task file, you may find that basic commands are highlighted in red with the Unresolved reference error. At the same time, the project does not run.

This happens because the standard language library has not yet been added to the project. In older versions of IntelliJ IDEA, a yellow Kotlin is not configured panel appeared for this, but in newer versions, the environment must be configured manually.

Why is manual configuration required?

Kotlin is a cross-platform programming language. This means that the source code can be:

  • Compiled to run on the Java Virtual Machine (JVM).
  • Transpiled to JavaScript or native applications.

Since the project has just been downloaded from the server, IntelliJ IDEA requires the developer to explicitly specify for which target environment Kotlin needs to be configured.

Step-by-step configuration setup

  1. In the top main menu of IntelliJ IDEA, click on ☰ and navigate to: Tools → Kotlin → Configure Kotlin in Project.
  2. In the dialog box that appears, select Java (or Java/JPS). We make this choice because we use a local JDK, and our code will be compiled to run under the JVM. Then click OK.
  3. Wait for the process to complete. IntelliJ IDEA will automatically download and add the Kotlin standard library (KotlinJavaRuntime) to your project.
  4. After a successful setup, the red error highlighting will disappear, and an active green program execution button (Run) will appear to the left of the main function.

You can now solve tasks.

Synchronizing tasks between website and plugin

The list of tasks and their statuses is updated automatically every five minutes or after submitting any task for verification (it must be successful).

Therefore, if you solved a task on the website, it will also be in the list of solved tasks in the plugin. If you need to update task status information right now, click on your avatar (top right), and in the dropdown menu select Synchronize tasks:

Novice mode in the plugin

This is a simplified version for users who have no (or little) experience working with IntelliJ IDEA and other development environments. It hides some of IntelliJ IDEA's features. To disable this mode, click on your avatar (top right), and in the dropdown menu select Settings -> Novice mode.

How to hide the plugin navigation bar in PRO mode

Click on Settings (⚙️) and uncheck the "Show plugin navigation bar" option:

4. Plugins for IntelliJ IDEA

IntelliJ IDEA has many plugins that facilitate various aspects of a programmer's work. But we are primarily interested in those that help us learn and make our work more pleasant.

1. Key Promoter X

There is an absolutely fantastic plugin for IntelliJ IDEA called Key Promoter X. It tells you how various complex actions you perform with the mouse in IDEA can be done with a single keyboard shortcut. Install it — you won't regret it.

2. Rainbow Brackets

Rainbow Brackets is a plugin that colors paired brackets (parentheses, square brackets, and curly braces) in different colors. When you have many nested brackets, it becomes very easy to get confused. This plugin helps quickly determine which bracket belongs to which.

3. Material Theme UI

Want your IDE to look stylish and modern? Material Theme UI is the most popular plugin for interface customization. It replaces the standard look of IntelliJ IDEA with beautiful themes in the Material Design style, changes folder and file icons, and adds bright accents. It doesn't affect your code in any way, but it makes the workflow visually much more enjoyable.

1
Task
Kotlin SELF, level 5, lesson 5
Locked
Drone Navigation
Drone Navigation
1
Task
Kotlin SELF, level 5, lesson 5
Locked
Hash banner
Hash banner
1
Task
Kotlin SELF, level 5, lesson 5
Locked
Screen with a border
Screen with a border
1
Task
Kotlin SELF, level 5, lesson 5
Locked
Pair for the quest
Pair for the quest
1
Survey/quiz
IDE installation, level 5, lesson 5
Unavailable
IDE installation
Installing the IDE and setting up a Kotlin project
Comments
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION