My vscode project has an "app" folder which is the root folder for my workspace.
It is possible to change the title of this workspace?
My vscode project has an "app" folder which is the root folder for my workspace.
It is possible to change the title of this workspace?
Use the "File -> Save Workspace As ..." to save it into a file.
Normally, you would only want to use a <name>.code-workspace
file with multi-root projects (that is, projects that include multiple folders), but this is also the only way to rename a workspace.
More information:
P.S. All the credit goes to Henry for pointing me to .code-workspace
files :) Thanks!
Simply edit the .code-workspace file contained in the actual folder (via file explorer) and rename it. That's it!
I haven't yet found a way to change the name of the workspace itself (without changing the filename); but one thing not mentioned in other answers that might be relevant: you can edit the .code-workspace file and add a name
property to set a custom display name for each folder in your workspace:
{
"folders": [
{
"path": "../path/to/folder",
"name": "my custom folder name"
}
],
"settings": {}
}
Another setting I always use, is to change the text in the title bar "window.title"
(aside from changing colors per workspace). This helps me distinguish different workspace easily.
.code-workspace
file (Ctrl+Shift+P
(Or F1
) option Preferences: Open Workspace Settings (JSON)
{
"folders": [
{
"path": "./path/to/workspace",
"name": "My custom name"
}
],
"settings": {
"window.title": "My custom title",
"workbench.colorCustomizations": {
"titleBar.activeBackground": "#DBEAFE",
"titleBar.activeForeground": "#000000",
"activityBar.activeBackground": "#DBEAFE",
"activityBar.activeBorder": "#000099",
"activityBar.background": "#DBEAFE",
"activityBar.foreground": "#000099",
"activityBar.inactiveForeground": "#686575",
"activityBarBadge.background": "#000099",
"activityBarBadge.foreground": "#FFFFFF",
"statusBar.debuggingBackground": "#FEAC32"
}
}
File --> Close Workspace.
Manually rename the workspace file in your operating system's file explorer or terminal. Ex: on Linux or Mac or in the git bash terminal using Git For Windows:
cd path/to/workspace
mv old_workspace_name.code-workspace new_workspace_name.code-workspace
File --> Open Workspace from File..., then select the workspace you just renamed.