-
Notifications
You must be signed in to change notification settings - Fork 29k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opening VS Code from 'cmd.exe' and then trying to immediately exit command window fails. #6608
Comments
Unfortunately What are you trying to achieve here? Doesn't a simple |
I am trying to end Command Window bloat when I'm editing files. I want to open a command terminal to start VS Code and then close the command window once Code is open. For instance, I have full VS running, and want to edit the same solution in VSCode, I press Ctrl+Alt+Space (my key-binding for opening command terminals in full VS.) Then I want to type in some command to open VS Code at the current location, and close the newly opened command window. Note: If I type I have found that I can get the desired behaviour if I change LINE 5 of the
I can then type I'm not a batch script expert, so I don't really understand the consequences of starting code using |
Me neither... it is truly a dark craft... We can explore using |
Great. After very cursory research here, it appears that there is very little difference between |
I don't understand why |
@maptz Figured out why After one hour of trial and error, I failed to get anywhere. Closing the issue since this is not specific to Code, but a Batch question. I suggest Stack Overflow for this. Good luck! |
I wrote a script to start vscode and other programs too, and I had the same problem @maptz had. I don't know why is used |
I want to open VS Code from a command line, and exit the command window in one step, but for some reason this fails.
Steps to Reproduce:
start "" code . && exit
The equivalent command
start "" notepad && exit
works as expected.The text was updated successfully, but these errors were encountered: