-3

Ok, now I am in Visual Studio wrote a script that responds to two commands: build build ~ Builds the code build run ~ Runs the code

How do I set these as a workflow so they run when I press shortcuts

I don't want to setup key bindings, it's like integrate into build run steps built into pressing f5 or run buttons on VS Code

I need to use launch.json to integrate into building and running, but I created custom scripts so that I can read sensitive information from a file, that I will never open that would expose the secrets. And setup environment variables from the contents of the secret file.

Ok wait a second, so I have to set an environment variable from within the script, and that stays set when I launch the program via launch.json

eguneys
  • 6,028
  • 7
  • 31
  • 63
  • if you don't debug why use `launch.json`, just redefine the `F5` key bindings to start a task that executes the needed command – rioV8 Aug 13 '23 at 09:42
  • I might want to debug in the future and keep f5 to it's default state so It is more streamlined and error prone easier to debug and extend in the fut.re – eguneys Aug 13 '23 at 09:51

0 Answers0