5

Eclipse, by default, hides files that begin with . in the Package Explorer, Navigator, and other file views (e.g. .classpath, .settings, etc). Is it possible to hide files which end in ~ (e.g. somefile.txt~).

Yes, these are Emacs backup files, created while using both Eclipse and Emacs on the same project.

Chadwick
  • 12,555
  • 7
  • 49
  • 66

3 Answers3

9

In the package explorer toolbar, there should be an icon that makes a dropdown menu appear; in that menu, select "Filters…".

Edit: see this link for an example of the icon, denoted the 'Menu button'

Michael Easter
  • 23,733
  • 7
  • 76
  • 107
Jean Hominal
  • 16,518
  • 5
  • 56
  • 90
  • 1
    Things have changed, apparently in the Mars release. The dropdown menu has a customize view option, and a filters tab in there. However, the filters list doesn't seem to include a 'emacs backup files' option, nor do I know how to add such a filter. – ticktock Mar 09 '16 at 18:43
5

use backup-directory-alist in your emacs config to stash away the emacs backups in a different directory

Sujoy
  • 8,041
  • 3
  • 30
  • 36
  • In the end I went with the Eclipse setting, but I find this a useful suggestion - I just happen to like where the backups are, but don't want to see them. – Chadwick Oct 27 '10 at 23:22
1

In the Mars release, for the project you want to filter files on:

  • Project > properties > Resource/Resource Filters, Add Filter...

  • In the Add Resource Filter dialog:

    • Select "Exclude all"
    • Select "Files"
    • Set "All Children" to true
    • Filter values: "Name" "matches" "*~"

Reference: http://help.eclipse.org/kepler/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Ftasks%2Ftasks-97.htm

dave_nedde
  • 21
  • 2