IntelliJ code style inspections

I have setup code style rules for Java in IntelliJ -> Preferences -> Code Style -> Java. Is there a way I can have IntelliJ highlight any of the rules being broken in the code in pre-existing code? For eg. this particular file is using spaces instead of tabs etc.

0
2 comments
Avatar
Permanently deleted user

Just reforma the whole project to get the new code style.

For the case of tabs vs spaces and indent settings there is a special option that will warn you when you are editing a file which indent settings are no the same as your code style settings:

Image:http://i.imgur.com/laKfYQS.png

---
Original message URL: https://devnet.jetbrains.com/message/5555981#5555981

0

You should already see the warning at the top of the file if indents if the file you are are editing do not match your code style settings.

0

Please sign in to leave a comment.