Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I know this is a simplistic question; but I've been using IntelliJ for months now, and can't find this simple feature.

Any idea? Thank you.

like image 492
Tomer Lichtash Avatar asked Jun 12 '11 15:06

Tomer Lichtash


People also ask

How do I close a file in IntelliJ?

Press Ctrl+F4 .

What is the shortcut key of closing a file?

The default shortcuts corresponding to File > Close are Ctrl+W and Ctrl+F4.

What is Ctrl K in IntelliJ?

In Eclipse, if the cursor is over a word and you press Ctrl + K you will jump to the next occurrence of that word in the file. Is there a similar shortcut in IntelliJ? eclipse intellij-idea.


2 Answers

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

like image 34
hvgotcodes Avatar answered Oct 11 '22 09:10

hvgotcodes


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

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

like image 189
Tomer Lichtash Avatar answered Oct 11 '22 09:10

Tomer Lichtash