Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
Stack Overflow is like an encyclopedia, so we prefer to omit these types of phrases. It is assumed that everyone here is trying to be helpful.
Source Link
Dharman
  • 33.9k
  • 27
  • 106
  • 157

I use a batch file like in Sean's solution. You can automatically close the terminal after launch if you use the start command rather than "code ."

Here's an example:

@echo off cd "C:\path\to\your\project\folder\" start "" "C:\Program Files\Microsoft VS Code\Code.exe" . exit 

Note: if you don's like how the batch file looks, you can make a shortcut to the batch file and change the shortcut's icon to the VS Code icon.

Hope this helps!

I use a batch file like in Sean's solution. You can automatically close the terminal after launch if you use the start command rather than "code ."

Here's an example:

@echo off cd "C:\path\to\your\project\folder\" start "" "C:\Program Files\Microsoft VS Code\Code.exe" . exit 

Note: if you don's like how the batch file looks, you can make a shortcut to the batch file and change the shortcut's icon to the VS Code icon.

Hope this helps!

I use a batch file like in Sean's solution. You can automatically close the terminal after launch if you use the start command rather than "code ."

Here's an example:

@echo off cd "C:\path\to\your\project\folder\" start "" "C:\Program Files\Microsoft VS Code\Code.exe" . exit 

Note: if you don's like how the batch file looks, you can make a shortcut to the batch file and change the shortcut's icon to the VS Code icon.

Source Link

I use a batch file like in Sean's solution. You can automatically close the terminal after launch if you use the start command rather than "code ."

Here's an example:

@echo off cd "C:\path\to\your\project\folder\" start "" "C:\Program Files\Microsoft VS Code\Code.exe" . exit 

Note: if you don's like how the batch file looks, you can make a shortcut to the batch file and change the shortcut's icon to the VS Code icon.

Hope this helps!