Synchronize Editor with Views

There is one requirement to see a part of file path as name of tab of opened editor to simply recognized the file that is opened. Sure there is a tooltip, which shows the full path of the file, but the mouse has to be used to display the tooltip. This is mainly needed, when there are opened many files with the same name.

Although there is not such functionality yet, there is  Synchronize Editor with Views option that could help you. You can find it in View menu and if the item is checked, then in Project view and File view is automatically selected the file that is in the editor.

It doesn't correspond exactly to the requirement that is mentioned above, but it can help in some cases.

Comments:

Nice one! Just what I've been looking for.

Thanks.

Posted by Ziad on December 02, 2009 at 03:24 AM CET #

I saw this option in the latest dev-build and was wondering what it does. There are many "views" in NetBeans and actually I thought it would synchronize with the code-navigator view.

I suggest to rename this option from "synchronize with Views" to "synchronize with Project- and File-View".

As a more personal note: I do believe, that soon after people start using this option, users will soon ask for a feature to "auto-collapse folders".

Posted by Tom on December 02, 2009 at 03:40 AM CET #

Simple, but very helpfully!

Posted by kqe on December 02, 2009 at 04:07 AM CET #

It's cool, but slow. It takes sometimes 1-2 sec to sync after file is focused. Still waiting for displaying in title bar

Posted by Pet on December 02, 2009 at 04:12 AM CET #

One can also use Ctrl+Shift+1 to focus the projects view in the current open file, instead of having this setting always on.

@Pet: it's instant on my laptop

Posted by carlos cabral on December 02, 2009 at 08:19 AM CET #

Not being able to see the full path of the current file being edited in the title bar is my biggest nitpick with Netbeans. I regually have 3 or 4 IndexController.php with a few index.phtml files open and it's not as easy as it should be to check which one I've just selected.

Regards,

Rob...

Posted by Rob... on December 02, 2009 at 01:34 PM CET #

@carlos: brilliant! Didn't know about that option and sometimes the jumping around when closing a file was really annoying. Thanks!

Posted by Cameron on December 02, 2009 at 03:20 PM CET #

I can't believe I didn't find this. This is the one feature from Eclipse I was missing.

Posted by thinsoldier on December 04, 2009 at 02:25 PM CET #

In similar way shortcut CTRL+SHIFT+2 works too, but it opens the Files view and selects the edited file there.

Posted by Funs blog on January 24, 2010 at 11:13 PM CET #

I was missing this feature too, and wasn't able to figure out what this feature does.
Now I know it very well... very useful.
thanks

Posted by gaurav on February 11, 2010 at 04:28 AM CET #

Post a Comment:
  • HTML Syntax: NOT allowed
About

This blogs is written by NetBeans developers who contribute to the PHP support mainly.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today