Add file to scope/context, either manually or automatically

Answered

I really like the ability to narrow the project view (and other views) to only the files I'm currently working on.  I know that I can manually create a scope by defining it in Settings -> Edit Scope, and that one is created for me when I have a changelist, and that's adequate.

However, it's not ideal:

  • Scope-from-changelist misses out on files that I might want to visit for reference while I'm working, but don't want to change.
  • Settings -> Edit Scope is OK for predefining scopes, but for modifying a scope while I work (i.e. I'm in a file and I just want to add it to the scope), it's very awkward.


What I'd really like is a way to do one of the following:

  • Hit a keystroke or a toolbar button (or a menu item) to add the current file to the current scope/context
    • The counterpoint to this, of course, is a keystroke/button/menu item to remove a file from the current scope/context
  • Check a box somewhere that says "whenever I visit a vile, add it to the current scope/context".


Is there currently a way to do either of these?

5
6 comments

Hi Rob,

I was actually looking for something but did not manage to find, so wrote my own plugin. It is very simple but hopefully can cover your cases. You can check it here: https://plugins.jetbrains.com/plugin/14987-scopes-manager

 
0

Hi, Alexey,

 

This looks very useful! Unfortunately, we're still on 2020.1.X here at my company, so the plugin shows up as incompatible.

0

Good to know, I will lower down the min requirements.

0

Hi Rob,

As of version 1.0.2 Scopes Manager plugin needs IDEA 2020.1.1. So if you want you can try it out.

Also, feel free to leave any feedback (thoughts/bugs/feature requests).

0

Hi, Alexey,

 

As of a couple of days ago, I've updated to 2020.2.X, so I've already tried it out. And posted a feature request :-)

I like it!

0

Nice, thank you!

0

Please sign in to leave a comment.