Netbeans - *Easy* way to tell which Netbeans project a file belongs to
Asked Answered
S

4

15

I was wondering if there is a way in Netbeans (v 6.8, or whatever) to have the editor tabs colored based on which project the file belongs to? Or some other easy way to distinguish which project a file belongs to.

Basically my problem is that I have 3-4 netbeans projects, which all have a very similar code base (production version, staging version, development version 1, development version 2), and sometimes I have files open from a few different projects, and I get confused as to which project the file belongs to.

And I know that you can hover over the tab and you can see which project it belongs to, but it would be fantastic if there was another, easier way to visually distinguish which project a file belongs to.

Sickly answered 26/4, 2010 at 16:51 Comment(1)
Never thought about it but it would be a great feature! +1.Sectionalize
W
13

IN Netbeans 7.4 (may be some versions earlier too) you can actually set exactly what you have asked for.

Just look at the screenshot below.

Netbeans 7.4 colored tabs grouped by project type

UPDATE:- If you dont find these settings in the misceleneous tab try the appearence tab, seems like this has been moved recently. (16-08-2014)

Whitton answered 21/2, 2014 at 12:33 Comment(1)
Great, must be new in 7.4Sickly
T
4

Update to 9kSoft answer. now (8.0.2) this option is in: Tools->Options->Appearance->Document Tabs

Options tab 8.0

Thackeray answered 13/1, 2015 at 12:0 Comment(0)
R
1

right click on the editor and select the menu item "select in > projects". the shortcut key is "Command + Shift + 1" in mac. in linux/windows I think it is "Ctrl + Shift + 1". this causes the file you are editing, to be selected in the projects view. I do it all the time I'm confused which file in which project I'm working on.

Reviewer answered 5/5, 2010 at 4:15 Comment(1)
I have used this pretty often also, except I never used the keyboard shortcut, which I'll bet will be more convenient. I was hoping there would be some way to visually distinguish without having to click around and do keyboard shortcuts. Geez I am lazy! I suppose this is the best answer for now.Sickly
M
0

I just hover over the title of the tab and it shows me the full path of the file. Then I can tell what project it is from by the folder name.

Muslim answered 24/2, 2021 at 9:27 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.