, . , ...
Run a fixed command line using the keyboard shortcut:
^!1::Run mytask.exe myfile.txt
The above command launches the command line mytask.exe myfile.txtwhen you press Ctrl+ Alt+ 1.
If you want to limit the scope of the label from global only to VSCode, add # IfWinActive before this line.
Of course, you can also expand the macro to define the file dynamically (or from user input), but I wanted to show you a minimal example, which is a transition method.
source
share