Skip to content

↑↓ moveEnter openEsc close

Expand or collapse a block in IntelliJ

IntelliJ 2025.3 · 61 shortcuts · checked Nov 2026 · Source: JetBrains docs

In IntelliJ IDEA, press Cmd+= or Cmd+- (Mac), Ctrl+= or Ctrl+- (Windows, Linux).

Either combination works; the keyboard shows the first. What else uses Cmd+=? · What else uses Cmd+-? · What else uses Ctrl+=? · What else uses Ctrl+-?

More IntelliJ shortcuts: editing

ActionMacWindowsLinux
Basic code completionCtrlSpaceCtrlSpaceCtrlSpace
Smart code completionCtrlShiftSpaceCtrlShiftSpaceCtrlShiftSpace
Show intention actions and quick fixesOptionEnterAltEnterAltEnter
Parameter infoCmdPCtrlPCtrlP
Quick documentationF1CtrlQCtrlQ
Generate code (getters, constructors)CmdNAltInsertAltInsert
Surround withOptionCmdTCtrlAltTCtrlAltT
Comment with line commentCmd/Ctrl/Ctrl/
Comment with block commentOptionCmd/CtrlShift/CtrlShift/
Reformat codeOptionCmdLCtrlAltLCtrlAltL

All 22 in editing · All 61 IntelliJ shortcuts