简体   繁体   English

IntelliJ项目文件已更改

[英]IntelliJ Project Files Changed

My friend and I are working as a team on a project through Dropbox. 我和我的朋友正在通过Dropbox在一个项目团队中工作。 Previously I have used Eclipse and Eclipse would automatically update the files in view. 以前我用过Eclipse而Eclipse会自动更新视图中的文件。 Unfortunately every time we make a new change IntelliJ says this: 不幸的是,每当我们做出新的改变时,IntelliJ都说:

在此输入图像描述

We then have to press Yes which then closes all of our tabs and is very annoying. 然后,我们必须按 ,然后关闭所有选项卡,非常烦人。 Is there a way to disable this in IntelliJ? 有没有办法在IntelliJ中禁用它? (We want it to work functionally equivalent to Eclipse if possible!) (如果可能,我们希望它在功能上与Eclipse相同!)

I think this problem is caused not by changes in actual code files, but IDEA's configuration files, those that are in the .idea/ folder inside your project. 我认为这个问题不是由实际代码文件的更改引起的,而是由IDEA的配置文件引起的,这些文件位于项目内的.idea/文件夹中。

One way to resolve this would be to use Selective Sync to stop syncing configuration folder. 解决此问题的一种方法是使用Selective Sync停止同步配置文件夹。

You can use the shortcut below to synchronize the classes. 您可以使用下面的快捷方式来同步类。

ctrl + alt + y ctrl + alt + y

And also check your intellij settings by navigating through HotSwap in File > Settings and then select Reload classes in background also you can use the shortcut as below to refresh. 并通过在File > Settings浏览HotSwap检查您的intellij设置,然后选择Reload classes in background您也可以使用下面的快捷方式刷新。

ctrl + F5 ctrl + F5

I would suggest to stop using dropbox. 我建议停止使用Dropbox。 Using git is a much better solution for collaboration, and there are free git services. 使用git是一个更好的协作解决方案,并且有免费的git服务。 There are even some that allow free private repos for smaller teams. 甚至有一些允许小型团队免费私人回购。 IDE project files should generally not be part of your source code. IDE项目文件通常应该是源代码的一部分。

Also, there are additional benefits to using proper source code controls, such auditing and history, merging, and so much more. 此外,使用适当的源代码控制还有其他好处,例如审计和历史记录,合并等等。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM