25

I sometimes run more than one eclipse with a new version of a project and another with an older version in a different workspace. Add an extra window view of the "new" version and it becomes difficult to tell when alt=tabbing which eclipse belongs to which workspace.

When a lot of files are involved with minor changes the only way to tell is to get the properties of a particular file and check the path. This of course is slow, there must be better way and having the workspace path in the title bar would make it easy to spot which instance is working with which workspace.

Is there a way to include the workspace path in the title bar so one can easily tell which workspace one is working with?

zb226
  • 9,586
  • 6
  • 49
  • 79
mP.
  • 18,002
  • 10
  • 71
  • 105

5 Answers5

39

If you add -showlocation in its own line at the beginning of your eclipse.ini, you will have the current workspace automatically displayed in the title bar.
(see this example of eclipse.ini)

alt text

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
33

If you go to Window -> Preferences -> General -> Workspace, there is an item "Workspace name (shown in window title):" that you can use. (I use Eclipse Helios CDT)

Ondra C.
  • 2,492
  • 3
  • 33
  • 35
  • 1
    This is the best option if you work with multiple workspaces open in different instances of Eclipse because you can see the window title that you set from your taskbar or when you're alt-tabbing. – nerdherd Aug 02 '13 at 13:26
  • 1
    Perfect! You can set any custom name for the workspace and it shows right in the beginning of the title bar. This is better IMO as opposed to `-showlocation` that shows full path (could be too long) at the end of title. – ADTC Dec 09 '15 at 08:49
5

Eclipse Oxygen (4.7)

In Eclipse Oxygen you can add the workspace path to the configurable Window title.

  1. Window > Preferences

  2. General > Workspace > check Show full workspace path

    General > Workspace > Show full workspace path

  3. Result:

    Eclipse title bar

Eclipse Neon (4.6) & Eclipse Mars (4.5)

The checkbox is in the same location, but it has a different text - Show workspace path in window title:

Show workspace path

ROMANIA_engineer
  • 54,432
  • 29
  • 203
  • 199
3

-showlocation is great, but it only changes the text at the end of the title bar, so it's often not visible in the taskbar.

If you want to change the beginning of the title bar, which shows the current Perspective, you can use Window -> Save Perspective As... and the new title will be visible in the Taskbar.

Dave L.
  • 43,907
  • 11
  • 63
  • 62
2

In Eclipse-Mars I am seeing "Workspace Name" as an option that lets you type your custom workspace name, not sure in which version this was introduced but this option is available on the same location where @Oncra C pointed (Window->Preferences->General->Workspace). The value you enter gets prepended to the start of the title.

Omi
  • 57
  • 1
  • 7