How to show the full file path in PHPStorm?

Viewed 9587
7 Answers

Solution

There is now an option to do this in the editor settings labeled "Always show full path in window header"

Settings/Preferences | Appearance and Behavior | Appearance | UI Options

enter image description here

Documentation

Always show full path in window header

Show the full path to the project and to the current file in the main window header. When disabled, the header will show only the name of the project and file.

Reference: https://www.jetbrains.com/help/idea/settings-appearance.html#ui

Note: Another useful setting for those looking for visibility of file paths is "Show full path on mouse hover". This is found under ( Settings/Preferences | Editor | General | Editor Tabs )

View > Appearance > check 'Navigation Bar'

At least from the current version of any JetBrains product: For MacOS you can do shift+option+cmd+C - this will copy full path+line.

A plugin called Tabdir seems to do this reasonably well. From the plugin page:

... this plugin will allow you to have directory names added to tab labels. It only shows path differences so if you have "blog/controllers/index" and "news/controllers/index" it will add either [blog] or [news].

The plugin doesn't appear to have been updated since 2012, but is working on my Webstorm 2021.1.2 (screenshot below). When you have a large number of tabs open, an albeit unique index tab isn't particularly helpful...

enter image description here

Related