X

An Oracle blog about NetBeans for PHP

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.

Join the discussion

Comments ( 10 )
  • Ziad Wednesday, December 2, 2009

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

    Thanks.


  • Tom Wednesday, December 2, 2009

    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".


  • kqe Wednesday, December 2, 2009

    Simple, but very helpfully!


  • Pet Wednesday, December 2, 2009

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


  • carlos cabral Wednesday, December 2, 2009

    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


  • Rob... Wednesday, December 2, 2009

    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...


  • Cameron Wednesday, December 2, 2009

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


  • thinsoldier Friday, December 4, 2009

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


  • Funs blog Sunday, January 24, 2010

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


  • gaurav Thursday, February 11, 2010

    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


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.