Remove codeStyleSettings.xml file

Answered

Hey, at some point codeStyleSettings.xml was created in my project and unfortunately added to git. I don't really need it and wanted to remove it, but it keeps recreating itself and i can't remove it from version control now. Even adding it to git exclude file doesn't help.

 

My question is: Can i make codeStyleSettings.xml file stop recreating itself? Just get rid of it completely from my project?

0
2 comments
Avatar
Permanently deleted user

It's gone. I removed my custom style but codeStyleSettings.xml file was still recreating itself, i had to restart intellijIDEA to make it stop. Don't know if this is a bug or expected behavior but if anyone happens to have the same issue, here you go.

0

BTW, you could remove a file from git even without deleting it. You will need to use command line though.

To stop tracking a file in git execute

git rm --cached /path/to/file & git commit -m "Commit_mesage"

0

Please sign in to leave a comment.