How to use gitignore in Pycharm?
Try:
- Go to Settings
- Go to Plugins
- Search for: .ignore
- Install
- Restart PyCharm
.gitignore
should now be included in .ignore
along with .hgignore
etc.
In PyCharm Pro 2019.3, I was able to do this by - right click folder or file I wanted to add to gitignore. - scroll to and click on Git - scroll to and click on Add to .gitignore If a gitignore file is not already there, PyCharm will create one and add it to the main project folder and add your chosen folder/file to it.