Using Win+R
to run a command with parameters, similar to bash functions.
mkdir %userprofile%\bin
Add %userprofile%\bin
to PATH
.
Create %userprofile%\bin\ci.ps1
with a line like this (edited for your needs):
code-insiders --remote ssh-remote+vb /home/slikts/work/$args
Create a shortcut in the same location with this target:
powershell.exe -ExecutionPolicy Bypass -File ci.ps1
-NoExit
can be added to the arguments for debugging.
Now the Windows Run dialog (opened with Win+R
) can be used to quickly start the code-insiders
process in a specific sub-directory by entering ci example
.