Reset to default
Trending sort is based off of the default sorting method — by highest score — but it boosts votes that have happened recently, helping to surface more up-to-date answers.
It falls back to sorting by highest score if no posts are trending.
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:
The standard tip if you don’t know how to do something in Idea is “Find Action…” (ctrl+shift+A in Windows) then type what you want to do, in this case
You will get a lot of different “close” actions and simply “Close” (ctrl+F4 in Windows) will be one of them.
You can also set a custom key combination in the settings menu
File > Settings and select
Keymap from the menu on the left, then scroll down to the
Other section and set your preferred key combination for
Close Active Editor:
When you double-click on
Close Active Editor, a menu pops up allowing you to set a key combination, a mouse gesture, or even an abbreviation for the action. If the shortcut is already set somewhere else (as in my case with
Ctrl-W) you’ll get a notification and won’t be able to set the shortcut until you remove the other one.
As with Matt Ball, I don’t use IntelliJ but may also be CTRL+F4…
For MAC user, Cmd-W will close the active tab (file).
On Mac, you might like to use
CMD + W, as this is the conventional shortcut for closing things e.g. Tabs in Chrome.
But by default this is usually associated with highlighting the current cursor block, so instead I use
CTRL + W, rather than re-assigning.
e.g. (bottom right)
Also works for other IntelliJ IDEs, like WebStorm, etc.
IDEA->File->Setting->Search for “Close Active Editor”.
Click on ‘Add Keyboard Shortcut’ -> Change it to “Ctrl+W”. (Overwrite).
BOOM! you are universal now!
I’m on version 2020.4 and this has changed to Ctrl+4