简体   繁体   中英

launch vscode script from powershell prompt

I have switched from CommandPrompt to Powershell and want to use the same command I used in Command prompt to open the file I'm working on in VSCode, ie: code. In Powershell, this doesn't launch VSCode or really do anything noticeable. Would love some insights. Thanks.

Try the below. This will open the current folder on which you triggered powershell.

Start-Process code . 

As @Steven already mentioned, it should also work by just typing code on your powershell input.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM