禁用 Netbeans 自动 svn 忽略?

发布于 2024-07-26 04:22:24 字数 349 浏览 4 评论 0原文

如何阻止 Netbeans 自动 svnignore-ing“.swp”文件?

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

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

知道如何禁用此功能吗?

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

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.

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

携余温的黄昏 2024-08-02 04:22:24

来自此处

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

  • 打开 $HOME/.netbeans/6.1/config/Preferences/org/netbeans/core.properties
  • 删除 IgnoredFiles 属性中最后一个竖线字符 (|) 之后的所有内容(即 |^\..*$)并附加 ^.svn$
  • 重新启动 NetBeans

您还可以在“选项”的“文件”选项卡下找到此设置


正如 therefromhere 在注释中:

  • 在 netbeans 6.7 中,这是在 Tools->Options->Miscellaneous->Files 中,
  • 在这种情况下要附加的相关模式是 ^.*\.swp$

From here:

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

  • 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:

  • In netbeans 6.7 this is in Tools->Options->Miscellaneous->Files
  • the relevant pattern to append in this case was ^.*\.swp$
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文