Visual Studio User Defined Argument Code

I work with visual studio code tasks and can predefine the arguments in the task as follows:

{"version":"0.1.0","command":"example","isShellCommand":true,"tasks":
[{"taskName":"example task","suppressTaskName":true,"args":["examplearg"]}]}

I would like to be able to enter an argument when starting a task, since the argument must be defined by the user, is this possible? For example, I would like to be able to run a task from the pallete command: example task --myCustomArg.

0
source share
1 answer

Impossible. Open the problem in their repo and see what they say.

There is, however, a way to transfer the current file. See here.

The final choice is to create an extension. You should also try. 😊

+1
source

Source: https://habr.com/ru/post/1683312/


All Articles