How to close a file in Intellij using a keyboard shortcut?

Idiot me. CMD-F4 or, as mentioned before, CTRL-F4.

Thank you all. I'll just bury myself now :)


hmm you can't because there is no default key binding for that, at least on OSX, however you can go here and define one:

enter image description here