0

How do I close the current file I'm working in (in Rubymine)? I don't want to click the 'x' because I hate the mouse, and I don't want to "close all modified" I simply want to close the current file that has focus, much like I can in any other program on Mac by pressing Command W.

Makoto
  • 104,088
  • 27
  • 192
  • 230
botbot
  • 7,299
  • 14
  • 58
  • 96

3 Answers3

2

I bet you've missed this documentation section.

Shortcut would depend on the keymap and can be customized, but the default one is Ctrl+F4 on Windows and Cmd+F4 on Mac.

Verify the shortcut in Settings | Keymap, make sure it doesn't conflict with other applications, try to map the Close action to a different shortcut. It works fine, I've double checked it.

CrazyCoder
  • 389,263
  • 172
  • 990
  • 904
1

Command-W should work to close the current file in the current version of Rubymine (6.2)

Mark Kadlec
  • 8,036
  • 17
  • 60
  • 96
0

Ditto what CrazyCoder said. Here are the exact steps to map Close and Close All windows to shortcut keys in Rubymine:

Rubymine | Preferences | Keymap | Main Menu | Edit | Select Word at Caret  >> Remove Keyboard Shortcut: command+W
Rubymine | Preferences | Keymap | Main Menu | Edit | Unselect Word at Caret  >> Remove Keyboard Shortcut: command+shift+W
Rubymine | Preferences | Keymap | Window | Editor Tabs | Close  >> Remove Keyboard Shortcut: command+F4
Rubymine | Preferences | Keymap | Window | Editor Tabs | Close  >> Add Keyboard Shortcut: command+W
Rubymine | Preferences | Keymap | Window | Editor Tabs | Close All >> Add Keyboard Shortcut: command+shift+W

Details here: http://lexsheehan.blogspot.com/2013/01/fixing-close-window-keyboard-shortcuts.html

l3x
  • 30,760
  • 1
  • 55
  • 36