Shortcut to Close Intellij File Tab
Solution 1:
- Open
Settings
by hittingCtrl+Alt+S
- Click:
Keymap
- Search for:
Close
- Under
Main menu > Window > Editor Tabs
, findClose
. - Right-click and click
Remove Ctrl+F4
. - Right click and click
Add Keyboard Shortcut
- Add your new custom Keyboard Shortcut.
IntelliJ will tell you if the shortcut clashes with another shortcut performing a different action.
Alternatively, open/edit your Linux Window Manager Settings and remove the Ctrl+F4
mapping to allow other programs like IntelliJ to make use of it.
Solution 2:
For PC-based keyboards, the shortcut to close tabs is CTRL + F4,
not to be confused with ALT+F4.
Solution 3:
Current tab can be closed with:
Ctrl + F4
Works on Intellij Ultimate 2016.3
Solution 4:
On mac OS, Intellij 2018.3 version, 'Command + W' does close the file tab.