在ide之外编辑的文件

发布于 2024-11-10 06:33:01 字数 110 浏览 4 评论 0原文

如果我运行脚本在我正在使用的 ide 之外编辑文件,ide 会识别对文件所做的更改吗?

更具体地说: -IDE:Netbeans 6.8 -版本控制:CVS -操作系统:Windows XP

If I run a script to edit files outside of the ide I am using, will the ide recognize the changes made to the files?

More specifically:
-IDE: Netbeans 6.8
-Version Control: CVS
-OS: Windows XP

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

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

发布评论

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

评论(3

听你说爱我 2024-11-17 06:33:01

一般来说,是的。但是 NetBeans 的表单设计者认为代码的某些部分是“私有的”,您不应该在外部修改这些部分。它们通过生成的代码中的注释来识别:

* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.

这些部分实际上是从外部专有的 .form 文件生成的,并且源代码与 .form 代码不对齐会使一切变得混乱。

In general, yes. But the form designer of NetBeans considers some parts of the code "private", and you shouldn't modify these parts externally. They are identified by comments in the generated code:

* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.

These parts are in fact generated from an external proprietary .form file, and having the source code not aligned with the .form code will mess everything up.

往事风中埋 2024-11-17 06:33:01

是的,应该的。尝试一下并检查一下。

Yes it should. Give it a whirl and check it out.

过期以后 2024-11-17 06:33:01

是的,但有一些注意事项:

如果您当时在 IDE 中打开、编辑和未保存这些文件,那么您需要告诉 IDE 是放弃还是保留 IDE 内的更改。

如果您打开它们且未编辑它们,则根据 IDE,您可能必须告诉它重新加载这些文件(IDE 应警告您自上次打开以来文件已更改)。

如果您移动文件,并且您的 IDE 有某种项目文件(除其他外,它告诉它所有文件的位置),并且您没有相应地更新它,则可能会遇到问题。

您尚未在 IDE 中打开的任何文件都应该按预期运行,如果它没有接受更改,我会认为这是一个错误。

Yes, with some caveats:

If you have those files open, edited, and unsaved in the IDE at the time, then you will need to tell the IDE whether to discard or keep your in-IDE changes.

If you have them open and unedited, then depending on the IDE, you may have to tell it to reload those files (the IDE should warn you that the file has changed since you last opened it).

If you move files around, and your IDE has some kind of project file (that tells it, among other things, where all the files are) and you don't update it accordingly, you may have problems.

Any files that you don't already have open in your IDE should behave as expected, and I would consider it a bug if it didn't pick up the changes.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文