HappyFace
HappyFace

Reputation: 4093

VSCode: Can I open individual files instead of workspaces?

Opening whole directories (each one requiring a new window) doesn’t play well with editing lots of little scripts/config files scattered in different folders.

Upvotes: 2

Views: 904

Answers (2)

Peter
Peter

Reputation: 12295

You don't have to open a folder in VSCode!

In VSCode create a New Window (instance) and open all the files you're interested in from anywhere on your disk.

If you want to keep this selection for later, you can Save Workspace As .. for later usage.

Upvotes: 1

Wiingreen
Wiingreen

Reputation: 308

Yes, you can! Here are three ways:

  1. Either by running code {yourfilename here} in a terminal.
  2. Dragging the file from a file explorer onto the open VSCode window.
  3. Use the menu item "File/Open file... (Ctrl + O)", see image.

Open file in VSCode

Upvotes: 2

Related Questions