Home> Products> IntelliJ IDEA> Features & Screenshots> Essential Code Editing Features

Essential Code Editing Features

Unwrap/Remove action

Quickly extract or remove statements from for, if...else, try...catch...finally, do, do...while, and lone braces.

Unwrap/Remove action

Braces, brackets & quotes auto-insertion

If you start a code block with an opening curly brace character and press Enter, the corresponding closing brace is automatically inserted with the indentation specified in your preferences.

When you type (, [, ", <, or ' in the editor a paired character is inserted automatically (whenever appropriate). This feature may be easily switched off, but you should not be afraid of inserting too many closing parentheses, brackets, or quotes by mistake: IntelliJ IDEA will recognize that the closing bracket or quotation mark already exists and will leave only one character printed.

Matched brace/bracket highlighting

screenshot

Place the editor caret just after a closing (or just before an opening) brace or bracket of any type. If it is correctly matched, the matching pair highlights with light blue. If there is no matching bracket, the unpaired bracket highlights as a compile error. (You can change the default highlight colors in your configuration).

to the top

Express code commenting

Quickly comment/uncomment a selected line or block with either block (/*...*/) or line (//...) comments using Ctrl + / and Ctrl + Shift + / shortcuts, respectively. Comments insert at the first column, or at the indentation level, depending on your code style settings.

to the top

Clipboard stacking

screenshot

You can store multiple clipboard entries and access them with a single shortcut. The number of entries that can be stored in the clipboard stack is customizable through the IDE Settings.

Escape symbols are smartly handled when copying/pasting Java String literals.

to the top

Code folding

screenshot

Easily "fold" and "unfold" methods, Javadoc comments, or blocks of import statements, putting distracting detail out of your way. Fold/unfold a single block or everything in the file at once with a single key stroke (Ctrl + "+" / Ctrl + "-") or mouse click. Mouse over "folded" code icons to pop up the hidden detail for quick examination.

to the top

Customizable menu, toolbars, and keyboard shortcuts

You can easily customize the appearance of the IDE toolbar, by adding/removing buttons, as well as form the menus by re-ordering and adding/removing items. Menus and toolbars dialog is organized straight-forward and is very easy to use.

Keyboard shortcuts are also fully customizable, and you can define your own keymaps to change existing keyboard shortcuts or assign shortcuts to any menu item or Java editor command. In addition to the default keymap, IntelliJ IDEA has three pre-defined keymaps emulating keyboard shortcuts for Mac OS X™, Emacs and Microsoft® VisualStudio™. Users also can define their own keymaps.

Find out customization example.

to the top

Custom command lists

screenshot

If there is a set of commands frequently used by you, while these commands are located under different main menu items, or just deep in the menu hierarchy, you can easily create named custom command lists and assign devoted shortcuts to them, for quick call of your famous actions directly from the editor.

Read more about custom lists.

to the top

Quick switch of the current scheme

screenshot

There is no need to dig deep into the settings dialogs hierarchy when you need to apply another Color/Code style Scheme, Keymap or even Look and Feel of the application. This can be achieved with a short series of shortcuts. Just press Ctrl + BackQuote and then the number of the scheme to change.

to the top