3

When I work, I always have 2 to 6/7/... branches where I edit usually completely different files. These branches usually don't exist for more than a few days, 2 or 3 weeks at most.

As I don't want to look for the files I modified or had opened last time I worked on one particular branch, I'd like to have some sort of solution, maybe a plugin, for this problem.

Maybe I'm missing a functionality of PhpStorm (or Webstorm,IntelliJ,..) Or maybe there is a plugin for this?

InsOp
  • 2,425
  • 3
  • 27
  • 42
  • 1
    AFAIK there is no such functionality ATM (remembering last edited files per branch). But It's possible to remember such files per task/ticket https://confluence.jetbrains.com/display/PhpStorm/Integration+with+an+Issue+Tracking+System+in+PhpStorm – LazyOne Oct 13 '15 at 13:49
  • 2
    In any case: as general solution I may suggest to try `Context` functionality (set of files which you can switch to/open in one click) -- `Tools | Tasks & Contexts | Save/Load Context...` ( https://www.jetbrains.com/phpstorm/help/managing-tasks-and-context.html?search=context ) – LazyOne Oct 13 '15 at 13:50
  • this does work perfectly for my needs, thank you! (I still let the question open, for people who dont work with issuetrackers) – InsOp Oct 13 '15 at 13:59

1 Answers1

8

According to the documentation, it is possible to restore workspace on branch switching :

PhpStorm saves your context (a set of opened files, the current run configuration, and breakpoints ) provided that the Restore workspace on branch switching option is enabled in the Settings/Preferences dialog (Ctrl+Alt+S) under Version Control | Confirmation. When you switch to a branch, PhpStorm automatically restores your context associated with that branch.

LittleBigDev
  • 454
  • 4
  • 23
  • Thanks for answering this question after three years. It has been resolved in the comments ever since, but it is good to have an officially accepted answer! – InsOp Jan 10 '19 at 10:55