Daniel Jackson
Daniel Jackson

Reputation: 1126

Visual Studio Code - Why Use Workspaces over Standard Folders?

I've been searching and searching for what the purpose is for a workspace. I've asked this question in stack chats but no one seems to know.

I know workspaces are local copies of solutions and you can switch between them when testing different things on the same projects but with different branches but I can do that with standard folders as well. So I can't figure out what the advantages and disadvantages are of using workspaces over normal folders. Is having different settings for each workspace the only advantage?

The only other obvious thing I see is shown in the screenshot but that a workspace is shown as a single "Code Workspace" file with no folder structure even though it does have one while standard folders have the structure and shows all contents. Standard folder structure & Workspace Structure

I found this article on stack and it's kinda relevant but not as specific and it's unanswered. So instead of setting a bounty I thought I'd ask exactly what I was looking for. Asking about workspaces with settings vs user settings.

Upvotes: 10

Views: 4317

Answers (2)

rmhoma
rmhoma

Reputation: 41

In addition to workspace-based settings, workspaces can act like aliases that can link to a root folder (sort of like Dreamweaver's Sites feature). So you can keep a centralized folder/collection of all your workspaces in one place for easy navigation (a folder named VSC-Workspaces for example), yet they can point to and open work folders that may be saved in different locations on your hard drive, since they might be websites or python files, etc.

Upvotes: 4

abhijit
abhijit

Reputation: 6703

Two things which makes Workspace different from standard folders -

  1. Like the other answer you linked to, you can have workspace based settings
  2. In one Workspace you can open different folders which are not necessarily in the root folder which you open first.

Upvotes: 5

Related Questions