如何在vscode中重命名工作区?
我的 vscode 项目有一个“app”文件夹,它是我工作区的根文件夹。
可以更改此工作区的标题吗?
回答
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:
- What is a workspace in vscode?
- Saving workspaces
P.S. All the credit goes to Henry for pointing me to .code-workspace files 🙂 Thanks!
回答
只需编辑实际文件夹中包含的 .code-workspace 文件(通过文件资源管理器)并重命名即可。就是这样!