Eclipse - 如何在不单击/更改主视图的情况下知道我在哪个工作区工作

2022-01-16 00:00:00 windows eclipse-plugin java eclipse

目前在一个项目中处理 4 个不同的分支.

Currently working on 4 different branches in a project.

对于每个分支,Eclipse 中都有不同的工作区.

For each branch there's a different workspace in Eclipse.

问题是当我在不同的工作空间上打开多个 Eclipse 时,我很难区分它们并理解当前查看的是哪个工作空间.(路径相同,因此所有分支上的窗口名称都相同

Problem is when I have multiple Eclipses open on different workspace I have a hard time distinguishing between them and understanding on which workspace currently viewing. (the paths are the same so the window name is the same on all branches

我可以选择做:

文件->切换工作区->其他...

它会显示当前工作区的名称,但我正在寻找一种方法让它出现在我的主显示窗口中,所以我不需要每天执行 100 次此操作

and it will shows the name of current workspace but im looking for a way for it to appear in my main display windows so i don't need to do this action 100 times a day

推荐答案

如果完整路径(如另一个答案所示)太长,则可以使用 Window ->首选项->一般->工作区->工作区名称 而是为每个工作区设置一个自定义标签,然后在标题栏中突出显示.

If the full path (as shown in the other answer) is to long, then you can use Window -> Preferences -> General -> Workspace -> Workspace Name instead to set a self defined label for each workspace, which is then shown prominently in the title bar.

相关文章