Shrink the selection in IntelliJ
In IntelliJ IDEA, press Option+↓ (Mac), Ctrl+Shift+W (Windows, Linux).
EscF1F2F3F4F5F6F7F8F9F10F11F12PrtScScrLkPause
`1234567890-=deleteInsHomePgUp
TabQWERTYUIOP[]\DelEndPgDn
CapsASDFGHJKL;'return
ShiftZXCVBNM,./Shift↑
fnctrloptcmdcmdopt←↓→
EscF1F2F3F4F5F6F7F8F9F10F11F12PrtScScrLkPause
`1234567890-=BkspInsHomePgUp
TabQWERTYUIOP[]\DelEndPgDn
CapsASDFGHJKL;'Enter
ShiftZXCVBNM,./Shift↑
CtrlWinAltAltWinMenuCtrl←↓→
EscF1F2F3F4F5F6F7F8F9F10F11F12PrtScScrLkPause
`1234567890-=BkspInsHomePgUp
TabQWERTYUIOP[]\DelEndPgDn
CapsASDFGHJKL;'Enter
ShiftZXCVBNM,./Shift↑
CtrlSuperAltAltSuperMenuCtrl←↓→
See it happen Press the shortcut above, or
More IntelliJ shortcuts: editing
| Action | Mac | Windows | Linux |
|---|---|---|---|
| Basic code completion | CtrlSpace | CtrlSpace | CtrlSpace |
| Smart code completion | CtrlShiftSpace | CtrlShiftSpace | CtrlShiftSpace |
| Show intention actions and quick fixes | OptionEnter | AltEnter | AltEnter |
| Parameter info | CmdP | CtrlP | CtrlP |
| Quick documentation | F1 | CtrlQ | CtrlQ |
| Generate code (getters, constructors) | CmdN | AltInsert | AltInsert |
| Surround with | OptionCmdT | CtrlAltT | CtrlAltT |
| Comment with line comment | Cmd/ | Ctrl/ | Ctrl/ |
| Comment with block comment | OptionCmd/ | CtrlShift/ | CtrlShift/ |
| Reformat code | OptionCmdL | CtrlAltL | CtrlAltL |