Go to Window > Settings/Preferences > Preferences
Edit > Restore to Default.
Edit > Restore to Default.
If should not wipe any custom shelves you have created
Alternatively if your MAIN MENU bar at the top is gone you can press ctrl + m. should unhide it.
Alternatively if your MAIN MENU bar at the top is gone you can press ctrl + m. should unhide it.