1. The history of the IDE, popular IDEs for Java

The history of the IDE begins from the moment when programmers came up with the idea of combining 4 of the most commonly used software development tools:

  1. Text editor
  2. Compiler (or interpreter, depending on the language)
  3. Build automation tools
  4. Debugger

A lot of water has flowed under the bridge since then. Today it is hard to imagine IDEs without features such as:

  1. Class browser: a tool for easily navigating through thousands of classes in a project
  2. Integration with version control systems
  3. Tools for designing a graphical user interface without writing code
  4. Powerful tools for refactoring (changing code without adding any new features)
  5. Code style analysis and enforcement
  6. Super powerful debuggers that let you debug programs even remotely
  7. Code analyzers and all kinds of helpful autocompletions/prompts/hints

There are many different IDEs for Java developers today. Three of them stand out because they are most popular:

  • IntelliJ IDEA
  • Eclipse
  • NetBeans

Many programmers are still caught up in the long-term war between Eclipse and IntelliJ IDEA, but by now it is obvious to everyone that IDEA has won. And you will understand why as soon as you use it for even a few days.

2. Flavors of IntelliJ IDEA

JetBrains releases IntelliJ IDEA updates four times a year. An IDEA version number consists of a year number and number that corresponds to the specific release in the year. For example, version 2018.2 is the second release of 2018, and 2019.3 is the third release of 2019. It is difficult to get confused.

Each release has two versions of IntelliJ IDEA: free and paid.

IntelliJ IDEA Community Edition
The free version is called IntelliJ IDEA Community Edition. It has everything you need for learning on CodeGym. So feel free to download it, install it, take off. You can download it here.

IntelliJ IDEA Ultimate Edition
The paid version is called IntelliJ IDEA Ultimate Edition. It has strong support for plenty of professional frameworks such as Spring, Hibernate, GWT, etc. At best, you will need these things at the very end of your CodeGym studies.

IntelliJ IDEA Ultimate Edition has a 30-day free trial, but then you will have to shell out a tidy sum for it.

If you want to use the paid version for free, there is a completely legitimate way to do this. It is called the Early Access Program (EAP).

IntelliJ IDEA EAP
With the release of each version of IDEA, there is a risk that some innovations won't work correctly or might even break some things that previously worked. That's why JetBrains lets developers download a non-released version of IntelliJ IDEA Ultimate Edition and test it on real projects.

On the one hand, there is a risk that this version will be rough around the edges. On the other hand, you get access to the latest IDEA features even before they are officially released. And for free. Isn't that cool?

3. Installing IDEA

Installing IDEA

Choose whichever version of IntelliJ IDEA you want on the https://www.jetbrains.com/idea/download/" target="_blank">official IntelliJ IDEA webpage. I hope you've already decided which one you prefer. If you're having trouble deciding, I recommend the Community Edition: it's simple and user-friendly.

There are versions of IDEA for Windows, MacOSX, and Linux. This is no surprise, since developers are very fond of these last two operating systems. As you gain experience, you'll also be amazed at how easy it is to manage various programs and services from the console/terminal.

If you still have questions, perhaps the official instructions for installing IntelliJ IDEA may be helpful.

4. Video instructions on the installation process

Next, simply run the downloaded installer to install IDEA. We made a special video to make this process as easy as possible for you.

class="embed-responsive-item"

Having trouble installing? Write to support at support@codegym.cc or use the widget in the lower right corner of the page of our site. Including a description of the problem, screenshots, and OS version will be super helpful.

5. Creating your first project

To write your first program in IDEA, you need to do 3 things:

  • Create a new project
  • Create a Solution class where you will write your code
  • Run the program.

Step-by-step instructions for creating a project


Video on how to create a project in IDEA

class="embed-responsive-item"

6. Plugins for IntelliJ IDEA

IntelliJ IDEA has a variety of plugins that make various aspects of a programmer's job easier. But we are mainly interested in the ones that will help us learn.

There is just a great IntelliJ IDEA plugin called Key Promoter X. It tells you how various complex actions you perform in IDEA can be performed with a single hotkey combination. Add it — you won't regret it.

First, go to the plugins section. To do this, press Ctrl+Alt+S. Then type "Key Promoter X" in the search bar and install the plugin:

Congratulations, you are now one step closer to being a developer!

undefined
3
Task
New Java Syntax, level 3, lesson 5
Locked
What's the cat's name?
Help the cat get a name using the setName method.
undefined
3
Task
New Java Syntax, level 3, lesson 5
Locked
Cat register
Write code in the addNewCat method to increase the number of cats by 1 each time it is called. The variable catCount corresponds to the number of cats.
undefined
3
Task
New Java Syntax, level 3, lesson 5
Locked
Setting the number of cats
Write the setCatCount method. The method must set the number of cats (catCount).
undefined
3
Task
New Java Syntax, level 3, lesson 5
Locked
Name register
Finish writing the code of the setName method so that it sets the value of private String fullName to the value of the local String variable fullName.
undefined
3
Task
New Java Syntax, level 3, lesson 5
Locked
Count the number of cats
Write a code that correctly counts the number of created cats (count) and correctly displays the count on the screen.