'Create a VSCode style menu in electron

I am exploring electron for the past week and I come across a question about how can I create a costume menu in Electron just like VSCode does have it. Just like this:

My Menu: This is how by default Electron creates the menu in your application; However, how can I move my menu to the blue bar, just like it is shown in the picture.

enter image description here

VSCode Menu: This is how I want to create my menu, just like VSCode has it. I was thinking of doing it manually (using ul, li on HTML), however, I wonder if there could be a way to use the menu created by electron and exporter it into HTML, or if there is any other better way to do a costume menu just like VSCode have.

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source