GorvGoyl / Shortcut-Menu-Bar-VSCode-Extension

Add handy buttons like beautify, show opened files, save, toggle terminal, etc to the editor menu bar in VSCode. You can also create your own buttons with custom commands. VSCode Marketplace link: https://marketplace.visualstudio.com/items?itemName=jerrygoyal.shortcut-menu-bar
https://marketplace.visualstudio.com/items?itemName=jerrygoyal.shortcut-menu-bar
GNU General Public License v3.0
224 stars 44 forks source link

Custom buttons #52

Open samsmith94 opened 3 years ago

samsmith94 commented 3 years ago

Could you provide an opportunity to the users to use custom buttons instead of the 10 digis.

GorvGoyl commented 3 years ago

not possible as it is needed to be hard-coded in package.json (i.e. user can't modify it). Happy to see if someone finds a workaround.

Kenobi-the-2nd commented 3 years ago

One workaround is to create or download a different SVG icon file, name it the same name as the user button you want to replace, and rename the existing file, like below:

image

GitMensch commented 3 years ago

Maybe add the "heck the userButton icon" note to README.md and then close this issue?

GitMensch commented 2 years ago

One workaround is to create or download a different SVG icon file, name it the same name as the user button you want to replace, and rename the existing file

Isn't this hack broken as soon as the extension updates?

hansu commented 1 year ago

Isn't this hack broken as soon as the extension updates?

At least it doesn't work when you use the Settings Sync feature of vscode.

I like the way how the configuration is made in https://github.com/fabiospampinato/vscode-commands. But also a shorter variant like in https://github.com/gizak/vscode-shortcuts would do it.