问题
In Eclipse, the PHP Explorer view (that shows the folders of the project) is polluted by the .svn folders. That's kind of annoying, is there a way to hide them, because I looked everywhere in the documentation and didn't find it.
Thanks
回答1:
almost every view like explorer and outline views in eclipse has an option to filter visible elements by regex. you can find the menu by clicking on the small downward-pointing trangle in the top right corner of the view, then select the Filters item, then click the name filter patterns box, type sth like *svn
and voila.
回答2:
Open up eclipse and right click on your project in the workspace. Choose Properties and then select resource. Add a resource filter of type ‘exclude’ Enter the .svn folder name and click OK.
回答3:
Though I don't use Subclipse for actual SVN access, I find that installing it is useful in that it does remove all the .svn folders from your project's view AND it give's you visual cues as to a given file's status with respect to SVN in general. Kind of a high price to pay though ...
回答4:
The best solution is to install a Subversion plugin into Eclipse (like Subclipse or Subversive)...
来源:https://stackoverflow.com/questions/4829075/dont-show-svn-folders-in-eclipse