Photo by Annie Spratt
What are Workspaces
VS Code's Workspaces allow users to customise both the UI and functionality of the IDE at a project level. Workspaces settings override User Settings
and are useful for sharing project settings with other devs and allow for project specific functionality and customisation.
To open Workspace Settings use the shortcut Ctrl+,
. You can either edit the settings using the UI on this view or click the { }
in the top right corner to edit the JSON
file.
What I use Workspaces for (atm)
- Adjusting
titleBar
colors to differentiate between multiple projects. -
search.exclude
to hidedist
/plugins
/vendor
folders from search results. - Exportable config allows sharing with co-workers on a per project basis.
- Multiple folder paths on one project
"folders": [
{
"path": "C:\\laragon\\www\\backend_server"
},
{
"path": "C:\\Github\\front_end_ui"
}
],
My Workspace Starter Settings
This is what I copy in to when I spool up a new project as a base - Gist
{
"folders": [
{
"path": "C:\\Github\\PROJECT_NAME"
}
],
"settings": {
"workbench.colorCustomizations": {
"titleBar.activeBackground": "#141414",
"titleBar.activeForeground": "#FFC87F",
"titleBar.inactiveBackground": "#696969",
"titleBar.inactiveForeground": "#FFC87F"
},
"search.exclude": {
".cache": true,
".vscode": true,
"node_modules": true
},
"window.title": "${rootName}",
"editor.cursorSmoothCaretAnimation": true
}
}
So what do you use?
What other handy settings should other developers be using with their workspaces?
Top comments (0)