禁用Netbeans自动svn忽略吗? [英] Disable Netbeans automatic svn ignore?

查看:95
本文介绍了禁用Netbeans自动svn忽略吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何停止自动svn ignore -ing".swp"文件中的Netbeans?

How do I stop Netbeans from automatically svn ignore-ing ".swp" files?

我使用Netbeans作为我的主要开发环境,但是我经常同时使用gvim进行快速编辑. gvim创建扩展名为.swp的临时文件,而Netbeans似乎正在扫描我的代码文件夹并为这些文件添加svn ignore属性.

I use Netbeans as my main development environment, but I often use gvim at the same time for quick edits. gvim creates temporary files with the .swp extension, and Netbeans seems to be scanning my code folders and adding an svn ignore property for these files.

我可以看到这对人们有什么用,但是我想禁用它-.swp文件无论如何都不会显示为未版本化,因此它们不是问题,但是目录修改是由当我使用svn命令行界面时,svn ignore只会创建大量的修改垃圾邮件.

I can see how this would be useful to people, but I want to disable it - the .swp files don't show up as being unversioned anyway, so they're not a problem, but the directory modifications caused by the svn ignore's just creates a load of modification spam when I'm using the svn command line interface.

您知道如何禁用此功能吗?

Any idea how I can disable this feature?

推荐答案

来自

让NetBeans停止将VIM交换文件添加到.cvsignore或svn:ignore

Get NetBeans to stop adding VIM swap files to .cvsignore or svn:ignore

  • 打开$ HOME/.netbeans/6.1/config/Preferences/org/netbeans/core.properties
  • 删除最后一个竖线字符(|)(即| ^ \ .. * $)之后的IgnoredFiles属性中的所有内容,并附加^ .svn $
  • 重新启动NetBeans
  • Open $HOME/.netbeans/6.1/config/Preferences/org/netbeans/core.properties
  • Remove everything in the IgnoredFiles property after the last pipe character (|) (i.e., |^\..*$) and append ^.svn$
  • Restart NetBeans

您还可以在选项"的文件"标签下找到此设置

You can also find this setting under the Files tab in the Options


从这里有在评论中提到的:


As mentioned by therefromhere in the comments:

  • 在netbeans 6.7中,这是在Tools->Options->Miscellaneous->Files
  • 在这种情况下要添加的相关模式是 ^.*\.swp$
  • In netbeans 6.7 this is in Tools->Options->Miscellaneous->Files
  • the relevant pattern to append in this case was ^.*\.swp$

这篇关于禁用Netbeans自动svn忽略吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆