Recently the toolbar is disappeared in pycharm. 
I was trying to find config\options\ui.lnf.xml in IntelliJIdea and Pycharm directory, but there is no such file.
Recently the toolbar is disappeared in pycharm. 
I was trying to find config\options\ui.lnf.xml in IntelliJIdea and Pycharm directory, but there is no such file.
This should work:
Shift twice (equivalent to Navigate > Search Everywhere)main menu (or just ma me)View | Appearance: Main MenuIs your OS Linux? Try adding linux.native.menu=false into Help | Edit Custom Properties and restart IDE.
Here are the steps to unhide (Or show back) the main menu/Toolbar in Goland/Pycharm or other IntelliJ Editors:
Cheers!
There is a file name "ui.lnf.xml", the location of this file may different from OS to OS.
In Linux - the file location is - Home directory after that .config/JetBrains/Idea_<>/options. For example I am using Ubutu.. then i can find the location like -
$ sudo find /home/ -name "ui.lnf.xml"
/home/xxxx/.config/JetBrains/IdeaIC2022.2/options/ui.lnf.xml
Under the "ui.lnf.xml" there will be an entry if main menu is off -
<application>
<component name="UISettings">
<option name="SHOW_MAIN_MENU" value="false" />
</component>
</application>
Need to change the value from false to true. This will solve the problem.