Is there any way to support .code-workspace files (or have similar functionality)?
Trying out Webstorm again and while some of the features are powerful the one thing that keeps driving me back to VSCode is the ability to have a monorepo with multiple projects inside of it with the root folder still accessible.
In VSCode this is simple as creating a JSON file called `XYZ.code-workspace`. For example:
{
"folders": [
// Frontends
{
"name": "🌐 Some App",
"path": "./apps/some-app"
},
{
"name": "🌐 Some other app",
"path": "./apps/some-other-app"
},
// Libraries
{
"name": "📚 UI Kit",
"path": "./libs/ui-kit"
},
// ETC
{
"name": "💠 Root",
"path": "."
}
],
"settings": {
"files.exclude": {
// Specific project names to avoid disabling the option of creating new projects from VSCode
"apps/some-app": true,
"apps/some-other-app": true,
"libs/ui-kit": true,
// ETC
}
}
}
This lets me define specific 'project folders' with their own icon and exclude the folders already represented by a 'project' in the root.
I can't really see an equivalent option in WebStorm and it makes the experience working in a monorepo worse. Does this option exist? Is there anything on the roadmap like this?
请先登录再写评论。
Ability to import would be great for teams that use multiple IDEs.
WebStorm can neither read not create the
.code-workspace
files; but VSCode "workspace" (more or less) just a collection of folders... In WebStorm, you can open a root folder of the workspace via File > Open to create a project. In case of multi-root workspaces, you would need adding other roots to WS project via Settings | Directories, Add Content Root - each root will appear as a separate node in the tree view