Ctrl+w doesn't close tab; closes Project window (Eclipse keymapping)
I set PHPStorm to use Eclipse keymapping, and when I have an active tab open and hit Ctrl+w, it always closes the Project window (tab?) on the left and never any open tabs. I want it to close whatever is the open/focused/last-focused tab like Eclipse.
I checked Settings > Appearance & Behavior > Keymap, searched for "close tab", Ctrl+w for Close Active Tab, and Ctrl+Shift+w for Close All under Editor Tabs.
Any idea what's going on?
请先登录再写评论。
Edit: If I right-click a tab, Close says Ctrl+F4, and Close All says Ctrl+Shift+F4; I don't know how to ACTUALLY get the Keymap settings to stick.
Hi there,
The correct action for closing current editor tab (in Keymap) is : Main Menu > Window > Editor Tabs > Close
Editing bundled keymap is not allowed -- make sure to create your own copy first ("Copy" button) and then modify it as you wish (right click on desired action and choose "Add Keyboard Shortcut")
Keymap screen has a search button (next to search by name input field) that allows you to find action by its keyboard shortcut.
Well, PHPStorm is doing it wrong then, because Ctrl+W in Eclipse closes the current open file tab (where your code is), not the Project tab, but PHPStorm closes the Project tab, and assigns Ctrl+W to Window > Active Tool Window > Close Active Tab (which isn't really useful).
I'm not sure what you mean by 'bundled' keymap, but I just deleted the incorrect mappings and assigned Ctrl+W to Window > Editor Tabs > Close. I don't understand why the rearrangement or misalignment.
https://youtrack.jetbrains.com/issue/IDEA-125657
"bundled" means supplied/provided by default an dnot the one that you need to install/create separately.
Settingsby hittingCtrl+Alt+SKeymapCloseMain menu > Window > Editor Tabs, findClose.Remove Ctrl+F4.Add Keyboard ShortcutIntelliJ will tell you if the shortcut clashes with another shortcut performing a different action.