Multiple views for same project?

已回答

VSC call these workspaces, but I see the workspace plugin for IJ is 12 years old and abandoned: https://github.com/arnonmoscona/workspaces-plugin.

When I'm working on different aspects of a project, I need a different set of files open. How does one manage these different "views", or "workspaces", or whatever you want to call them, in IJ?

I don't want to create another project because I want to preserve all of the same project settings between these views.

How do others manage these "lists of related files" within a single project for the different things one has to work on?

Unlike this request, https://intellij-support.jetbrains.com/hc/en-us/community/posts/360000366324-How-to-Open-Multiple-Windows-Views-Viewing-the-Same-File-Project-,  I want to be able to save these views/workspaces with a name and come back to them later.

 

1

Sort of. but I'm finding it a bit like the square peg round hole. Seems to be geared more towards saving/stashing work/branches.

Maybe I'm just not using it correctly.

What I'm looking for is a way to maintain multiple lists of open files, regardless of branch/task/etc.

eg: a "view", or list of files may consist of these types of named file lists

- terraform config files 

- README docs

- IAM related TF files

- Jenkins jobs.

Such that, regardless of task, I can open a new editor with a specified file list, without changing branch/task/etc.

Regardless of what task/branch I'm working on, I may want a different view of a project. It's a PITA to keep opening the same files within each task/branch. These views are more functional aspects of a codebase and are useful across all tasks/contexts.

That said, the docs on this are sparse. Are there any video presentations on the context task features?

 

0

> What I'm looking for is a way to maintain multiple lists of open files, regardless of branch/task/etc.

The Tools | Tasks & Contexts | Save Context from the main menu should work in this use case.
You could open a set of files that you want to open in the editor, then use that menu to save the context.
Later, you could use Tools | Tasks & Contexts | Load Context to reopen these files in the editor.

> eg: a "view", or list of files may consist of these types of named file lists

There is a similar feature in the called Scope, which could be used to only show some file types in the Project View: https://www.jetbrains.com/help/idea/configuring-scopes-and-file-colors.html

> That said, the docs on this are sparse. Are there any video presentations on the context task features?

We don't have a video for this. But the feature should be straightforward to use.
If you have any questions about it, you could ask it here.

1

请先登录再写评论。