Is there a way to get to know which project is loaded in an IDE window?
Filename including extension are displayed in the window title bar, but I need the full path too in order to know exactly what it is. Is this information available somewhere from within the IDE?
I am not trying to automate anything. I am trying to find, what project is loaded. I do have several versions (branches or snapshots in time) saved on my system. Obviously, they all have the same name, So I need to know more, i.e. the path the project has been loaded from. I will use that information to decide whether I need to discard, save or save As any pending changes.
How should one handle branches of a project without getting confused when the IDE does not easily provide full identification of the project loaded?
On Mac you can hold one of the modifier keys (option or command, can’t remember which) and click the project icon in the title bar. You’ll see the full path in the menu.
I do use a proper version control system. With a version control system it is even easier to have multiple branches / versions in various working directories. And what would it help? The IDE is even less able to identify the project against what it is in the repository.
I don’t agree, obviously it is relevant which revision / commit the files in your working folder are based on, and what pending modifications you have done to those files. Yes it is the same project, but the branch / revision and pending modifications matter, and in regard to what you are working on, this matters. And the version control system is not able to tell you anything without knowing the state of your working folder.
Looks like you use version control in a different way.
I only have 1 working folder per project. Each project have many branches. I use git to change the branch I will work on, can commit changes or just drop them as I want.
I guess that you need to work on different branches at the same time and need several working folders to do that. I can’t work like that.
there is the trunk (main branch, current version) on which I need to integration-test developments
there’s one or more feature branch I use for developing different areas/features until they are ready for integration
there may be tag versions, i.e. corresponding to released app versions, used for bug finding and potentially to develop patches for bug fixes for older versions which need to get published before the next major or minor release.
there may be other branches I need to partially merge with one of my branches