Android Studio IDE's main menubar is one of the essential parts of the IDE. From simple primary operations (Such as Open, Create, Save projects) to many advanced operations can be done using the main menu/toolbar and it is very frustrating when you accidentally hide that menu/toolbar because IDE's many components are controlled by that menubar and you lose control over those components as you are not able to access the main menu .
You can see in
Pic 1: The Main menubar is shown but in
Pic 2: the Main menubar is gone (hidden).
To solve this press (
Ctrl + Alt + S) key from your keyboard, the
Settings menu will appear. From the left panel select
Keymap and from the right panel select
Now Right-click on the Main menu, you will find three options
Add Keyboard Shortcut,
Add Mouse Shortcut and
Add Abbreviation. Select
Add Keyboard Shortcut
Keyboard Shortcut dialog box will appear. Select any key (
In my case its M)
Now press the OK button, and once again OK to close the Settings dialog box.
Now press the shortcut key (
In my case its M) and you will see a popup Main menu
View -> Appearance -> Main menu
Finally, you will see your Main menu again :)
Remove the shortcut key - To remove the Shortcut Key, press (
Ctrl + Alt + S) key -> Keymap -> Main menu
Right-click on Main menu, Select
Remove -> Hit Apply, then OK button.
Thanks for reading :)