Add the XML file to this location Users\
YOUR_USER_NAME\.IntelliJIdea2016.2\config\codestyles
Then in IntelliJ go to settings > editor > code style
Under Scheme select SWENG Java Style
To use in IntelliJ: Ctrl
+ Alt
+ L
to format a particular file.
Under Window/Preferences
select Java > Code Style > Formatter
Import the settings file by selecting Import
.
To use in Eclipse: Ctrl
+ Alt
+ L
to format a particular file.