This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 229284 - Show class name instead of file name in editor
Summary: Show class name instead of file name in editor
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Actions/Menu/Toolbar (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-02 14:49 UTC by mamadrood
Modified: 2016-03-19 05:21 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mamadrood 2013-05-02 14:49:48 UTC
I'm currently working on a symfony project and a good half of my files are names "actions.class.php" they all contain different classes and i find it really confusing to see in my files tabs on top of my editor a list of files with the same name.

Could it be possible to show class names (if a class is found in the file) instead of file names in the editor ? I think it could be a good idea in a lot of languages.
Comment 1 allanNB 2016-03-19 05:21:15 UTC
I share your pain, right now im looking at my editor with 4 tabs with the same name - I have to hover over them to find out what classes they actually are.


this could be an optional setting based on file extension (*.php, *.java, *.cpp etc). it could just forcefully match the first class declaration in that file

it would be extremely cool if I could also set shortened terms for each class name shown in the title

for example:
I would configure "Controller_" to be replaced with "C_" or "Model_" to be replaced with "M_" in the editor tabs title to save space

this feature will allow us to keep our filenames standards compliant, while having extremely usable tab titles in our editors