I would like to open Visual Studio Code for a specific folder. The command I try to run works, but when the script opens Visual Studio Code, it doesn't close the PowerShell window. I would like to close the PowerShell window right after the script opens the Visual Studio Code. But even an explicit exit call does not work:
ii F:\c#
iex "& code ."
exit
This opens Visual Studio Code, but the shell window stays open until I close Visual Studio Code.
start -WindowStyle Hidden code .code .and ONLY powershell closed :Dii" and "F:\c#"?