Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show frequently used commands in toolbars under the menu bar in VScode

How to show frequently used commands in toolbars under the menu bar in VScode?

In Visual Studio, frequently used commands are placed in some toolbars. We can click them easily with a mouse, not using keyboard shortcuts.

Is there a way to set up toolbars in VScode like Visual Studio?

like image 604
niaomingjian Avatar asked Aug 26 '17 02:08

niaomingjian


2 Answers

No, this is currently not possible (VSCode doesn't have one built-in, and the extension API is rather limited when it comes to customizing UI). There was a feature request for this, but it was considered "out of scope":

Support a real toolbar below the window title with actions (#18042)


Note that the extension API does allow you to customize the buttons shown in the upper right of editors, so that could be a workaround in the meantime:

The contribution point is the editor/title mentioned here. This is how the built-in markdown extension adds the additional Open preview to the Side button for .md files:

The third-party Markdown Shortcuts extension takes this even further, adding controls for editing such as Toggle bold, Toggle italic etc:

like image 187
Gama11 Avatar answered Sep 29 '22 08:09

Gama11


I made the extension just for this purpose.. you can add buttons like beautify, list files, undo, redo, save all etc to the editor menu bar in the VSCode. checkout Shortcut Menu Bar

enter image description here

like image 30
GorvGoyl Avatar answered Sep 29 '22 09:09

GorvGoyl