简体   繁体   English

使用intellij IDEA代替github存储库上的netbeans

[英]work with intellij IDEA instead of netbeans on github repository

We are five students working in the same project.This project was created with Netbeans, and we have a repository on gitHub. 我们有五个学生在同一个项目中工作。这个项目是使用Netbeans创建的,并且在gitHub上有一个存储库。 I want to use Intellij and the four team members are using NetbeansIDE so can i work on this repository using Intellij IDE, without break the repo...if yes how can i do it. 我想使用Intellij,四个团队成员都在使用NetbeansIDE,所以我可以使用Intellij IDE在此存储库上工作,而不会中断存储库...如果是,我该怎么做。

Java source code is stored as plain text. Java源代码存储为纯文本。 You could have a person on your team using Notepad and it wouldn't make a difference. 您可以使用记事本在您的团队中雇用一个人,这不会有任何变化。 I will include a few caveats to this statement, however: 但是,我将对此声明进行一些说明:

  1. Don't add any IntelliJ IDEA or Netbeans files to the project. 不要将任何IntelliJ IDEA或Netbeans文件添加到项目中。 You can add the entire .idea folder to your .gitignore . 您可以将整个.idea文件夹添加到.gitignore I'm not sure if Netbeans has a similar folder. 我不确定Netbeans是否具有类似的文件夹。
  2. Make sure your team agrees on tabs vs. spaces, indentation level, etc. Both IDEs include tools to format your code, so you want to keep it consistent. 确保您的团队在制表符与空格,缩进级别等方面达成共识。两个IDE都包含用于格式化代码的工具,因此您希望保持代码的一致性。

Making the project a maven/gradle project would be a great solution. 使该项目成为Maven / Gradle项目将是一个很好的解决方案。 This way managing the build and dependencies of the project will be independent from the IDE, development parties are using. 开发人员正在使用这种方式来管理项目的构建和依赖项,而与IDE无关。

Absolutely! 绝对! If you have a .gitignore just ignore the files that the respective ides eg .idea for IntelliJ. 如果您使用.gitignore,则只需忽略相应ide的文件,例如IntelliJ的.idea。

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

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