简体   繁体   中英

vscode command line : open a file of an opened project

I have a project opened in vscode.

I Windows Powershell, under project directory, when I type

code test.html

It will open the file but with a new vscode instance, I want in the already opened project instead: is it possible?

Yes, it is possible with the -r ( --reuse-window ) option.
For example:

code -r .\Dockerfile

( https://code.visualstudio.com/docs/editor/command-line )

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