Setup Auto Code Formatting on Intellij - yclim/gem GitHub Wiki
Format java code using google-java-format Intellij Plugin
Intellij setup (Make editor style and reformat code match google code format style)
- Follow README.md from google-java-format git project to install google-code-format intellij plugin and enable it, and import intellij java google style file and import it
- To enable 'format on save', install "Save Action" plugin.
- check "Reformat file"
- Add file path exclusions app/.* so that javascript/typescript files are not affected
Format frontend code using Intellij Prettier plugin
- Install prettier plugin - this will allow Ctrl-Shift-Alt-P hotkey to format code
- Install File Watcher plugin - this will enable format-on-save
- Configure file watcher to watch Type Script, Javascrpt, and SCSS files
Tslint in Intellij
Ensure tslint is enabled in Intellij