简体   繁体   中英

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?

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:

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

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM