Eclipse Ignore Folder

Sometimes when using eclipse I need to jump to a file. I press CTRL-SHFT-R to pop up the resource. However most of the time I end up editing a copy of the file in a build folder.

The solution to this problem is to Right click the troublesome folder, select properties and Click Derived. Now when Jumping to files with CTRL-SHIFT-R  you wont edit the bad copy.

5 Comments »

  1. Derek Lewis said,

    July 30, 2008 @ 3:43 am

    Thanks very much for this tip. I was looking for exactly this, and it works like a charm.
    Due to the way our build works, there’s 5 copies of most js/jsp files, and the last one is the source file, which has been rather irritating. Your instructions fix that wonderfully.

  2. Chuck said,

    August 25, 2008 @ 11:28 am

    Thanks so much!! I have been looking for a solution to this mildly irritating problem for some time! Kudos!

  3. Dave said,

    September 10, 2008 @ 11:41 am

    This is great! Thanks so much.

    Now… is there a way to specify a pattern? I have a whole big code tree of directories and each one has a “.svn” directory to be marked “Derived”, a “generated” directory to be marked “Derived”, etc.

    Digging around in the directories I can’t even find where Eclipse stores this information.

    Thanks!

  4. Rob said,

    September 10, 2008 @ 11:49 am

    That I don’t know. I think that if you add the eclipse subversion plug-in it gets rid of the .svn folders from the view.

  5. Ryan Stille said,

    October 6, 2008 @ 1:54 pm

    To get rid of the subversion files, you can go to the menu of the navigator, and select Filters. Then check the checkbox for the types of files/directories you want ignored. Unfortunately there is not one for .svn so I had to choose the .* one. Supposedly you are supposed to be able to edit your plugin.xml file to manually add more filters to choose from, but I could not get this to work.

    Back to the point of the original post, this tip worked great for me for the CTRL-SHFT-R issue. I have a folder of many thousands of images inside my project, and this excludes them from the resource window. Unforunately it doesn’t exclude them from searches! I wish eclipse had a better IGNORE-THIS-FOLDER option. Searching google I come across a lot of people looking for this feature.

RSS feed for comments on this post · TrackBack URI

Leave a Comment