在ide之外编辑的文件
如果我运行脚本在我正在使用的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
一般来说,是的。但是 NetBeans 的表单设计者认为代码的某些部分是“私有的”,您不应该在外部修改这些部分。它们通过生成的代码中的注释来识别:
这些部分实际上是从外部专有的 .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:
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.
是的,应该的。尝试一下并检查一下。
Yes it should. Give it a whirl and check it out.
是的,但有一些注意事项:
如果您当时在 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.