Skip to content

Instantly share code, notes, and snippets.

@jimathyp
Last active May 31, 2021 00:22
Show Gist options
  • Select an option

  • Save jimathyp/8b5d1608cabfcc4912062ea507f92abd to your computer and use it in GitHub Desktop.

Select an option

Save jimathyp/8b5d1608cabfcc4912062ea507f92abd to your computer and use it in GitHub Desktop.

VSCode

Vscode workspace files

Folder paths can be absolute or relative.

I created a workspace, added folders, then saved the workspace.

Later I moved that .code-workspace file somewhere else and opened - no contents under the folder name.

In the .code-workspace file either:

  • add relative (../) path relative to location of workspace file.
  • or add absolute path (/home/user/ worked fine in WSL - where user is actual $USER, but not literally $USER).

microsoft/vscode#33328 Store workspace folder paths in the same format across OS (forward slash) #33328

microsoft/vscode#33188 Relative paths in .code-workspace files are turned into absolute ones on save #33188

https://code.visualstudio.com/docs/editor/multi-root-workspaces

https://stackoverflow.com/questions/44629890/what-is-a-workspace-in-visual-studio-code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment