Java

Java

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

Commit Changes

tip

Commit Changes
Commit your changes to VCS
Disable Usages

tip

Disable Usages
Disable the inlay hint for Usages
AI Assistant Chat

tip

AI Assistant Chat
Chat with AI Assistant inside the IDE
Find in File

tip

Find in File
Find a specific name or string in your file
Generate unit tests

tip

Generate unit tests
Generate unit tests with AI Assistant
Toggle Rendered View

tip

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

tip

AI Actions
Use AI Actions in the editor
Close tabs

tip

Close tabs
Close inactive tabs
Expand and Collapse Code

tip

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

tip

Move Statement
Move a statement up or down
Explain Runtime Error with AI Assistant

tip

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

tip

Interactive rebase
Using interactive rebase in IntelliJ IDEA
Write documentation with AI Assistant

tip

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

tip

Dependency Matrix
Explore project structure with the Dependency Matrix
Import multiple repositories

tip

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

tip

Optimize imports
Remove unused imports from your code
Rename bookmark

tip

Rename bookmark
Rename an existing bookmark
CamelCase in code completion

tip

CamelCase in code completion
Use CamelCase in code completion
Extract Method

tip

Extract Method
Extract code to a new method
Generate a Test Class

tip

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

tip

Inline Variable
Inline a variable in your code
Introduce variable

tip

Introduce variable
Refactor your code and introduce a new variable
Postfix Completion

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.
Surround with

tip

Surround with
Surround your code with common programming constructs
Live Templates

tip

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

tip

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

tip

Debugging Streams
Visualize the flow of data through a stream
Recent Files & Locations

tip

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

tip

Clipboard history
Paste a subset or multiple entries from your recent history
Data flow analysis

tip

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

tip

Extend Selection
Extend and shrink selection
Go to Next Error

tip

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

tip

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

tip

Inlay hints
Inlay hints provide additional information about your code
Structural Search

tip

Structural Search
Structural Search and Replace
Context Actions

tip

Context Actions
Use Alt+Enter to show available context actions
Generate Code

tip

Generate Code
Helps you to generate commonly used code constructs
Navigate to Test

tip

Navigate to Test
Go to your matching test class
Navigating Forward & Backward

tip

Navigating Forward & Backward
Move forward and backward between your locations in the code
Explore project structure with the Dependency Matrix

tutorial

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

Part of tutorial

Interpret the Dependency Matrix
How to interpret the Dependency Matrix
Summary and Shortcuts

Part of tutorial

Summary and Shortcuts
Explore project structure with the Dependency Matrix Summary
Opening the Dependency Matrix

Part of tutorial

Opening the Dependency Matrix
Opening the Dependency Matrix for your project
Introduction

Part of tutorial

Introduction
Explore project structure with the Dependency Matrix
Extract Variable

tip

Extract Variable
Extract code to a variable
Getting started with IntelliJ IDEA

tutorial

Getting started with IntelliJ IDEA
My favourite tips for all new starters in IntelliJ IDEA
Marco Codes - Building a Text Editor

tutorial

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

tutorial

Presenting with IntelliJ IDEA
Tips & tricks to level up your presentation skills with IntelliJ IDEA.
Highlighted commands in the terminal

tip

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

tip

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

tip

Restore a Deleted Breakpoint
You can restore previously configured breakpoints if you accidentally delete them
View supertype and subtype hierarchy

tip

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

tip

Built in Spell Checking
IntelliJ IDEA can spell check and fix errors for you
Merge/Unmerge If Statements

tip

Merge/Unmerge If Statements
Experiment with your code without changing the semantics
Code Completion for the Stream API

tip

Code Completion for the Stream API
IntelliJ IDEA can add the stream() call for us
Navigating a Long Class

tip

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

tip

Find & Select Multiple Occurrences
Select multiple occurrences of the same word and change them all at once
Navigate to the last edited location

tip

Navigate to the last edited location
Move around the files you're working on quickly with keyboard shortcuts
Add Favourite Photo as Background

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
Determining the return type of expression

tip

Determining the return type of expression
Type Info is very helpful on a per-expression basis
Edit a document in IntelliJ IDEA LightEdit Mode

tip

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

tip

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

tip

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

tip

Pattern Matching for Switch
Available in preview from Java 17
Java 17

playlist

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

tip

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

tip

In editor doc rendering
You can render Javadocs directly in the editor including HTML tags, images and links.
Writing Less Code With Live Templates

tutorial

Writing Less Code With Live Templates
How you can use live templates to get IntelliJ IDEA to write more code for you
Migrating from the `javax` to `jakarta` namespace

tutorial

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

playlist

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

tutorial

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

tutorial

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

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
Hello World in IntelliJ IDEA

tutorial

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

tutorial

Working with Maven
Understand how IntelliJ IDEA integrates with Maven.
Migrating JUnit 4 to JUnit 5

tutorial

Migrating JUnit 4 to JUnit 5
Migrating your JUnit 4 test suite to JUnit 5
Getting Started with IntelliJ IDEA

playlist

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

tip

Join Lines
Join lines of code together
Paste a clipboard image onto the Project Window

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
CamelCase in Searching

tip

CamelCase in Searching
Use CamelCase to find what you need faster
Smart Completion

tip

Smart Completion
Get type aware completion in your code
Getting Started with Spring Data JPA

tutorial

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

tip

Generate constructors and accessor methods
We can quickly generate common code constructs such as Constructors and Get and Set methods
Generate Overrides for equals(), hashCode() and toString()

tip

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

tip

Generate Test Methods
Generate a test method in your Test class
Type into any dialog to search

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.
Your First Spring Boot Application

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.
Writing Tests with Spock

tutorial

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

tutorial

Working with Gradle
Understand how IntelliJ IDEA integrates with Gradle.
Profile your application

tip

Profile your application
See how your application is performing with the built-in profiler
Run your code with Docker, SSH or WSL

tip

Run your code with Docker, SSH or WSL
Set a Run Target to change where your code runs
Generate UML diagrams for your Kotlin code

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
Use a lightweight inspection profile on commit

tip

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

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
Create a correct child Sealed Class

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
Use new methods on the Streams API

tip

Use new methods on the Streams API
Inspections can show us new features from Java 16
Turn on Preview Features to try new Java features

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.
Convert from Record

tip

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

tip

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

tip

Create Record
Create a new Java record class
Identify and fix deprecated calls

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
Use Pattern Matching for instanceof

tip

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

playlist

Java 16
Get up to speed on Java 16 with our top tips.
Using the IDE Feature Trainer

tutorial

Using the IDE Feature Trainer
Learning new things in the IDE
Add Breakpoint

tip

Add Breakpoint
Easily add breakpoints from the run window
Add Overload Bool

tip

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

tip

Adjust Code Style
Use quick intentions to adjust your code
Assert That Import

tip

Assert That Import
Use quick intentions to manage imports
Change Method Signature

tip

Change Method Signature
Refactor the signature of a method
Remove Unnecessary Condition

tip

Remove Unnecessary Condition
Use quick intentions to remove redundant code
Copy to, or create a Scratch File

tip

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

tip

Download a JDK
Download or associate a JDK with your project.
Drag and Dock Editor tabs

tip

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

tip

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

tip

Enable Git Staging
Git Staging is an alternative approach to IntelliJ IDEA Changelists
Enable Machine Learning for Code Completion

tip

Enable Machine Learning for Code Completion
Code completion may be enhanced with ML
Turn Editor Breadcrumbs On and Off

tip

Turn Editor Breadcrumbs On and Off
Editor breadcrumbs show you your file structure
Exclude a completion option

tip

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

tip

Extract Constant
Extract a value to a constant
Extract Field

tip

Extract Field
Extract code to a field
Extract Parameter

tip

Extract Parameter
Extract code to a parameter
Extract Variable

tip

Extract Variable
Extract code to a variable
Find Next Word

tip

Find Next Word
Find next word and highlight all instances
Find Usages

tip

Find Usages
Use Find Usages to search for references in your code base
Inline a method

tip

Inline a method
Inline a method
Meaningless Arguments

tip

Meaningless Arguments
Use quick intentions to remove redundant code
Move Line

tip

Move Line
Move a line throughout your class
Create New Class

tip

Create New Class
Quickly add new classes to your project
Rename an Interface

tip

Rename an Interface
Renaming in IntelliJ IDEA including comments and texts
Replace with var

tip

Replace with var
Use quick intentions to replace a local variable type with `var`
Run in Current Context

tip

Run in Current Context
Run just a file or a script
Show Virtual Whitespace

tip

Show Virtual Whitespace
Add virtual whitespace to the bottom of a file
Highlight code and surround it with brackets or quotes

tip

Highlight code and surround it with brackets or quotes
Surround code with brackets and quotes
Configure Your Editor

tip

Configure Your Editor
Setup the editor to suit your requirements
Toggle Tool Windows On and Off

tip

Toggle Tool Windows On and Off
Toggle Tool Windows to tailor your interface
Refactor an Unreachable Statement

tip

Refactor an Unreachable Statement
Use quick intentions to remove redundant code
IntelliJ IDEA Welcome Screen

tip

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

tutorial

Writing JUnit 5 Tests
Writing JUnit 5 Tests