O'Reilly logo

IntelliJ IDEA Essentials by Jarosław Krochmalski

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The editor basics

IntelliJ IDEA's editor supports all the standard features of a text editor such as selecting text, searching, cutting, copying, and pasting. Let's start with some basic editor commands and then focus on more advanced features of IntelliJ IDEA, such as syntax-aware selection, clipboard history, code reformatting, smart code completion, and code inspections.

To duplicate a line of code (or a selected block) use Ctrl + D (PC) or cmd + D (Mac). To remove a line of code or selected block, use Ctrl + Y (PC) or cmd + Y (Mac).

Sometimes it may be useful to comment portions of code. To use the line comment, press Ctrl + / (PC) or cmd + / (Mac). If you favor the block comment, use Shift + Ctrl + / (PC) or Shift + cmd + / (Mac). IntelliJ ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required