问题
I wanted to close active tab by shortcut in Android studio. I found CTRL+F4 does the job from here. Although it closed active tab, keyboard functionality disabled in a way that I couldn't type anything in editor (modify my classes).
So, I decided to change its shortcut. I assigned CTRL+W to close active tab
and CTRL+SHIFT+W to reopen closed tab
as you see in following screenshot. CTRL+SHIFT+W does its job properly while when I press CTRL+W nothing happens (active tab doesn't close).
My OS is Ubuntu.
回答1:
Close Active Tab closes the active tool window. You need to find "Close" under "Main menu" -> "Window" -> "Editor Tabs". Change this to "Ctrl + W" and it should work.
来源:https://stackoverflow.com/questions/37080941/assigned-shortcut-to-android-studio-doesnt-work