简体   繁体   中英

VSCode: files not in project open in a separate window

When I double click a file to open it from the finder, it opens in the currently open/focused project/window. IMO, this is a bad default.

I need files to open in the current window ONLY if they are in the project of that window.

Can this be set? Where do I set it?

There is a way to do it. You can add this line to your project's or global settings file.

"window.openFilesInNewWindow": "on",

Note

If you are using the cli tool there is also an easy way to do it:

code yourfile --new-window

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