Java

Java

Java is a general-purpose programming language intended to let application developers write once and run anywhere.

tip

Commit Changes
Commit your changes to VCS

tip

Disable Usages
Disable the inlay hint for Usages

tip

AI Assistant Chat
Chat with AI Assistant inside the IDE

tip

Find in File
Find a specific name or string in your file

tip

Generate unit tests
Generate unit tests with AI Assistant

tip

Toggle Rendered View
Toggle Rendered View for one or all Javadoc comments

tip

AI Actions
Use AI Actions in the editor

tip

Close tabs
Close inactive tabs

tip

Expand and Collapse Code
Quickly view specific parts of a class by expanding or collapsing code

tip

Move Statement
Move a statement up or down

tip

Explain Runtime Error with AI Assistant
Let AI Assistant explain runtime errors to you

tip

Interactive rebase
Using interactive rebase in IntelliJ IDEA

tip

Write documentation with AI Assistant
Generate documentation for your code with AI Assistant

tip

Dependency Matrix
Explore project structure with the Dependency Matrix

tip

Import multiple repositories
Import multiple related repositories into one IntelliJ IDEA project

tip

Optimize imports
Remove unused imports from your code

tip

Rename bookmark
Rename an existing bookmark

tip

CamelCase in code completion
Use CamelCase in code completion

tip

Extract Method
Extract code to a new method

tip

Generate a Test Class
Generate a new test class from your Java class

tip

Inline Variable
Inline a variable in your code

tip

Introduce variable
Refactor your code and introduce a new variable

tip

Postfix Completion
Postfix completion allows you to keep typing forwards, it minimises the amount of time you spend moving the cursor around while you're coding.

tip

Surround with
Surround your code with common programming constructs

tip

Live Templates
Use Live Templates to auto-complete common code structures for you

tip

Debugging
Use the debugger to help you understand what your code is doing.

tip

Debugging Streams
Visualize the flow of data through a stream

tip

Recent Files & Locations
Quickly navigate around your recent files & locations

tip

Clipboard history
Paste a subset or multiple entries from your recent history

tip

Data flow analysis
Data flow analysis can show us potential errors in our logic

tip

Extend Selection
Extend and shrink selection

tip

Go to Next Error
Quickly move to the next (or previous) error or warning in the file.

tip

Find in Files
Find a specific string in (a subset of files in) your code

tip

Inlay hints
Inlay hints provide additional information about your code

tip

Structural Search
Structural Search and Replace

tip

Context Actions
Use Alt+Enter to show available context actions

tip

Generate Code
Helps you to generate commonly used code constructs

tip

Navigate to Test
Go to your matching test class

tip

Navigating Forward & Backward
Move forward and backward between your locations in the code

tutorial

Explore project structure with the Dependency Matrix
Exploring project structure with the Dependency Matrix in IntelliJ IDEA

Part of tutorial

Introduction
Explore project structure with the Dependency Matrix

Part of tutorial

Interpret the Dependency Matrix
How to interpret the Dependency Matrix

Part of tutorial

Opening the Dependency Matrix
Opening the Dependency Matrix for your project

Part of tutorial

Summary and Shortcuts
Explore project structure with the Dependency Matrix Summary

tip

Extract Variable
Extract code to a variable

tutorial

Getting started with IntelliJ IDEA
My favourite tips for all new starters in IntelliJ IDEA

tutorial

Marco Codes - Building a Text Editor
How to build a terminal-based text editor with Java

tutorial

Presenting with IntelliJ IDEA
Tips & tricks to level up your presentation skills with IntelliJ IDEA.

tip

Highlighted commands in the terminal
IntelliJ IDEA highlights terminal commands you can run in IntelliJ IDEA

tip

Inspections Widget
The top-right corner of your editor shows you information about the state of your class

tip

Restore a Deleted Breakpoint
You can restore previously configured breakpoints if you accidentally delete them

tip

View supertype and subtype hierarchy
You can view supertypes and subtypes in the hierarchy

tip

Built in Spell Checking
IntelliJ IDEA can spell check and fix errors for you

tip

Merge/Unmerge If Statements
Experiment with your code without changing the semantics

tip

Code Completion for the Stream API
IntelliJ IDEA can add the stream() call for us

tip

Navigating a Long Class
There are various tips and tricks you can use to navigate a long class in IntelliJ IDEA

tip

Find & Select Multiple Occurrences
Select multiple occurrences of the same word and change them all at once

tip

Navigate to the last edited location
Move around the files you're working on quickly with keyboard shortcuts

tip

Add Favourite Photo as Background
If you want to look at your favourite photo while coding you can set it as your background image

tip

Determining the return type of expression
Type Info is very helpful on a per-expression basis

tip

Edit a document in IntelliJ IDEA LightEdit Mode
Use IntelliJ IDEA’s text editing features without creating or opening a dedicated project.

tip

Generate a UML diagram
IntelliJ IDEA Ultimate allows you to generate UML diagrams.

tip

Inject a language
Language injections let you work with pieces of code in other languages embedded in your code.

tip

Pattern Matching for Switch
Available in preview from Java 17

playlist

Java 17
Get up to speed on Java 17 with our top tips.

tip

Move Line
Start a new line below or above your current line with the correct indentation.

tip

In editor doc rendering
You can render Javadocs directly in the editor including HTML tags, images and links.

tutorial

Writing Less Code With Live Templates
How you can use live templates to get IntelliJ IDEA to write more code for you

tutorial

Migrating from the `javax` to `jakarta` namespace
How to transition your application from Java EE to Jakarta EE.

playlist

IntelliJ IDEA 2021.1
Tips to get you productive with the new or improved features in IntelliJ IDEA 2021.1

tutorial

Rearranging Code in IntelliJ IDEA
How you can rearrange code in your classes and projects

tutorial

Reformatting Code in IntelliJ IDEA
Why and how you can reformat code in your projects

tutorial

Using the Terminal in IntelliJ IDEA
IntelliJ IDEA has a built-in terminal that you can use to perform a number of functions inside your IDE

tutorial

Hello World in IntelliJ IDEA
Create a new Java application and JAR file that prints `Hello World` to the console.

tutorial

Working with Maven
Understand how IntelliJ IDEA integrates with Maven.

tutorial

Migrating JUnit 4 to JUnit 5
Migrating your JUnit 4 test suite to JUnit 5

playlist

Getting Started with IntelliJ IDEA
Tips for getting started with IntelliJ IDEA

tip

Join Lines
Join lines of code together

tip

Paste a clipboard image onto the Project Window
If you have an image on your clipboard you can paste it straight into the Project Window

tip

CamelCase in Searching
Use CamelCase to find what you need faster

tip

Smart Completion
Get type aware completion in your code

tutorial

Getting Started with Spring Data JPA
Learn how to use Spring Data JPA to store and retrieve data from your database.

tip

Generate constructors and accessor methods
We can quickly generate common code constructs such as Constructors and Get and Set methods

tip

Generate Overrides for equals(), hashCode() and toString()
We can generate the code to override the equals and hashCode methods

tip

Generate Test Methods
Generate a test method in your Test class

tip

Type into any dialog to search
You can start typing into a dialog box to search, even if there's not a textual search box available.

tutorial

Writing Tests with Spock
Learn about the Spock testing framework by creating a project that uses Spock to unit test Java code

tutorial

Your First Spring Boot Application
In this tutorial we will use IntelliJ IDEA to create your first "Hello World" Spring Boot application. We'll also discuss what's in your project and why. Spring Boot is a way to create Spring applications easily with some abstractions, some of which we'll touch on in this tutorial.

tutorial

Working with Gradle
Understand how IntelliJ IDEA integrates with Gradle.

tip

Profile your application
See how your application is performing with the built-in profiler

tip

Run your code with Docker, SSH or WSL
Set a Run Target to change where your code runs

tip

Generate UML diagrams for your Kotlin code
JVM developers working with Kotlin code can create UML diagrams for their Kotlin classes, just like they could with Java classes

tip

Use a lightweight inspection profile on commit
Fully customise the checks you must perform before you commit your changes to version control

tip

Create a correct child Sealed Class
Sealed types are a new idea for Java developers, let IntelliJ IDEA guide you in how to create child classes

tip

Create a correct parent Sealed Class
Sealed types are a new idea for Java developers, let IntelliJ IDEA guide you in how to use them

tip

Use new methods on the Streams API
Inspections can show us new features from Java 16

tip

Turn on Preview Features to try new Java features
The latest versions of Java contain "Preview Features", features that are fully functional but require developer feedback. Try them out in IntelliJ IDEA.

playlist

Java 16
Get up to speed on Java 16 with our top tips.

tip

Convert from Record
Use quick intentions to convert a record to a class

tip

Convert class to record
Use inspections to convert classes to Java 16 records

tip

Create Record
Create a new Java record class

tip

Identify and fix deprecated calls
IntelliJ IDEA will warn you if you're using deprecated methods, and they will be shown with a strikethrough if they're marked for removal

tip

Use Pattern Matching for instanceof
Inspections can guide us to use new Java features

tutorial

Using the IDE Feature Trainer
Learning new things in the IDE

tip

Add Breakpoint
Easily add breakpoints from the run window

tip

Add Overload Bool
You can refactor a method to change its signature

tip

Adjust Code Style
Use quick intentions to adjust your code

tip

Assert That Import
Use quick intentions to manage imports

tip

Change Method Signature
Refactor the signature of a method

tip

Remove Unnecessary Condition
Use quick intentions to remove redundant code

tip

Copy to, or create a Scratch File
Scratch files persist across all versions of IntelliJ IDEA

tip

Drag and Dock Editor tabs
You can move editor tabs around as required

tip

Turn Editor Breadcrumbs On and Off
Editor breadcrumbs show you your file structure

tip

Download a JDK
Download or associate a JDK with your project.

tip

Create an Editor Fold
Create an editor fold to hide parts of your class

tip

Enable Machine Learning for Code Completion
Code completion may be enhanced with ML

tip

Enable Git Staging
Git Staging is an alternative approach to IntelliJ IDEA Changelists

tip

Exclude a completion option
Helps to reduce options that are not relevant for your code

tip

Extract Field
Extract code to a field

tip

Extract Constant
Extract a value to a constant

tip

Extract Variable
Extract code to a variable

tip

Extract Parameter
Extract code to a parameter

tip

Find Next Word
Find next word and highlight all instances

tip

Find Usages
Use Find Usages to search for references in your code base

tip

Inline a method
Inline a method

tip

Meaningless Arguments
Use quick intentions to remove redundant code

tip

Move Line
Move a line throughout your class

tip

Create New Class
Quickly add new classes to your project

tip

Rename an Interface
Renaming in IntelliJ IDEA including comments and texts

tip

Replace with var
Use quick intentions to replace a local variable type with `var`

tip

Run in Current Context
Run just a file or a script

tip

Show Virtual Whitespace
Add virtual whitespace to the bottom of a file

tip

Highlight code and surround it with brackets or quotes
Surround code with brackets and quotes

tip

Configure Your Editor
Setup the editor to suit your requirements

tip

Toggle Tool Windows On and Off
Toggle Tool Windows to tailor your interface

tip

Refactor an Unreachable Statement
Use quick intentions to remove redundant code

tip

IntelliJ IDEA Welcome Screen
Get a project from source control, open an existing project, or create a new project

tutorial

Writing JUnit 5 Tests
Writing JUnit 5 Tests