Getting Started with IntelliJ
In this tutorial, weβll walk through the process of installing and setting up the IntelliJ IDEA on your local machine. Weβll cover the installation process for both Mac and Windows and also set up the necessary configuration to get you up and running with IntelliJ IDEA.
What is IntelliJ IDEA?
IntelliJ IDEA is an Integrated Development Environment (IDE) created by JetBrains. Itβs built on Java and provides a consistent experience on Windows, macOS, and Linux for many different languages.
IntelliJ IDEA has a multitude of functionalities available and is designed to keep your focus on the code with features like code completion, inline debugging, quick fixes, and a variety of keyboard shortcuts.
Installation
In order to install IntelliJ IDEA, you will first need to navigate to jetbrains.com/idea. From here, you can click on the βDownloadβ button, and youβll be redirected to the download page.
Youβll be provided with two available editions to download: The free Community edition and the paid Ultimate edition. Weβll be installing the Community edition.
Next, weβll continue the installation process for Mac and Windows respectively. Make sure the correct operating system has been selected prior to downloading.
MAC USERS
1. Click on the Download button. If an βOpen and Saveβ dialog appears, select the option, βOpen withβ, to open the disk image once the download is complete. If it opens automatically, move on to the next step.
2. Drag the IntelliJ IDEA to your Applications folder:
3. Once the copying process is done, open IntelliJ by browsing for it in the βApplicationsβ folder in your finder and double-clicking on it.
Alternatively, you can use the spotlight search by pressing Command(β) + Space, then searching for βIntelliJβ and pressing Enter.
Accept the Privacy Policy and the option to send data. You will then be prompted with a window to customize IntelliJ.
4. Select your Default UI Theme and then click βSkip Remaining and Set Defaultsβ. The UI theme and other settings can always be changed later:
You should now have IntelliJ IDEA installed on your Mac!
WINDOWS USERS
1. Download and run the installer (.exe) from the download page.
2. Choose the default install location and menu.
3. Configure associations and Desktop shortcuts.
Desktop Shortcut: You can either create a shortcut for both launchers or each one individually. A 64-bit launcher is advisable if youβre working on multiple and/or large scale projects since it allocates more RAM.
Update Path Variable: Updating the PATH variable will allow you to use the command line to run projects in IntelliJ.
Update context menu: This will allow you to choose your directory with all your Java files.
Associations: These options will associate the files with the IDE in the system so that when you click on the files with these extensions in your file manager (Windows Explorer), they will open in the IDE. Weβll be creating associations with .java, .kt, and .kts.
Install 32-bit Jetbrains Runtime: This installs the runtime and must be checked if youβre creating a 32-bit launcher. Otherwise, the runtime comes bundled with the 64-bit launcher.
4. Choose your start menu folder. The default option will create a JetBrains folder in your start menu.
5. Complete your installation π
6. Select your default UI Theme and then βSkip Remaining and Set defaultsβ.
You should now have IntelliJ IDEA installed on your Windows machine!
Creating your first Kotlin project
1. After installation, launch IntelliJ and youβll see a Welcome dialog with a few options to create a new project or open an existing project. Click on βCreate New Projectβ:
2. The new Project window will have a few languages on the left panel. Make sure Java is selected. You will need the Java SDK in order to create the project; if you donβt have it downloaded, you can click on the dropdown and select βDownload JDKβ:
3. Under βAdditional Libraries and Frameworksβ, select Kotlin/JVM and click Next:
4. Name the project HelloWorld and click Finish:
5. On the left-hand panel, expand the HelloWorld folder and right-click on the src folder. Navigate to New and then Kotlin file/Class:
6. Name the new file HelloWorld:
7. In the newly created file, insert the following code snippet:
fun main () {println("Hello, world!")}
8. In order to run the file, click on the green arrow on the left side of code snippet and select Run HelloWorldKt. Alternatively, you can use the keyboard shortcut, Control(β) + Shift + R:
9. Once compiled successfully, the output of the program should appear at the bottom of the screen:
Congratulations! You now have your first Kotlin application running with IntelliJ.
While IntelliJ is aimed for Java programming, the IDE has extensive assistance for a variety of languages such as Python, SQL, Javascript, HTML, Kotlin, and many more. With IntelliJ, your software development process will be more streamlined, and less error-prone. The main coding principle that IntelliJ focuses on is writing code with the least amount of distractions as possible. With dedicated shortcuts and features, youβll be able to code in a much more efficient and faster way.
Author
'The Codecademy Team, composed of experienced educators and tech experts, is dedicated to making tech skills accessible to all. We empower learners worldwide with expert-reviewed content that develops and enhances the technical skills needed to advance and succeed in their careers.'
Meet the full teamRelated articles
- Article
Wireframe to Wire-fame
Apply your new Android development skills to bring a wireframe to life. - Article
Wireframing The Unquote Game
In this project, you'll explore wireframing techniques as you design the main screen for Unquote, an Android game that challenges users to correct confabulated quotes found on the Internet! Why? Because β[t]he truth is rarely pure and never simpleβ - Mickey Mouse. You tell βem, Mickey!
Learn more on Codecademy
- Skill path
Code Foundations
Start your programming journey with an introduction to the world of code and basic concepts.Includes 5 CoursesWith CertificateBeginner Friendly4 hours - Career path
Full-Stack Engineer
A full-stack engineer can get a project done from start to finish, back-end to front-end.Includes 51 CoursesWith Professional CertificationBeginner Friendly150 hours