I try to switch from Eclipse to IntelliJ IDEA. I have a project that uses Git and I want to quickly add files to .gitignore file. In Eclipse I can right click on a file/directory and choose ' Add to .gitignore '.
Is there anything like this in IntelliJ IDEA or I have to edit the file manually?
IntelliJ has no option to click on a file and choose " Add to .gitignore " like Eclipse has.
The quickest way to add a file or folder to .gitignore without typos is:
Additional info : There is a .ignore plugin available for IntelliJ which adds a "Add to .gitignore" item to the popup menu when you right-click a file. It works like a charm.
Intellij had .ignore
plugin to support this. https://plugins.jetbrains.com/plugin/7495?pr=idea
After you install the plugin, you right click on the project and select new
-> .ignore file
-> .gitignore file (Git)
Then, select the type of project you have to generate a template and click Generate
.
您可以创建文件.gitignore,然后Idea会建议您安装插件
我正在使用intelliJ 15社区版,我可以右键单击一个文件并选择“添加到.gitignore”
right click on the project create a file with name .ignore, then you can see that file opened.
at the right top of the file you can see install plugins or else you can install using plugins(plugin name - .ignore ).
Now when ever you give a right click on the file or project you can see the option call add to .ignore
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.