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
221 stars 44 forks source link

User Button Command #75

Open captincook opened 2 years ago

captincook commented 2 years ago

Hi, how to use the button command? for example in my Rust project I tried:

"code-runner.customCommand": "cargo build" or just cargo build

it works in terminal but in the extension I get Execution of 'userButton01' command has failed: command '

GitMensch commented 1 month ago

Have you checked workbench.action.tasks.runTask|cargo build? For this to work you need to define a build task with that name. ... thinking about - you may already have a default build task that you otherwise trigger by [CTRL]+[SHIFT]+[B], that can be executed with workbench.action.tasks.build.

Haven't checked but you may also be able to use commands.runInTerminal|cargo build (but you really would like a build task that you can add a problemMatcher to).