Code Completion

Code completion in your IDE means you can focus on solving the problem at hand.

IntelliJ IDEA offers various types of code completion:

  • Basic completion
  • Smart or type-based completion ⌃⇧␣ (macOS) / Ctrl+Shift+Space (Windows/Linux) suggests the right type
  • Statement completion ⌃⇧⏎ (macOS) / Ctrl+Shift+Enter (Windows/Linux) completes the statement
  • Postfix completion allows you to keep typing forward

Related Resources

Complete Statement
Complete Statement
Complete statement can add your semicolons, brackets and manage caret placement for you.
Create a new class
Create a new class
Create a new class and a new package.
JShell
JShell
Use JShell in IntelliJ IDEA to quickly evaluate Java expressions.