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?
This question is related to
git
intellij-idea
gitignore
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
.
I'm using intelliJ 15 community edition and I'm able to right click a file and select 'add to .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
You can create file .gitignore and then Idea will suggest you install plugin
Source: Stackoverflow.com