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)

  1. 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
  2. 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

  1. Install prettier plugin - this will allow Ctrl-Shift-Alt-P hotkey to format code
  2. Install File Watcher plugin - this will enable format-on-save
  3. Configure file watcher to watch Type Script, Javascrpt, and SCSS files

Tslint in Intellij

Ensure tslint is enabled in Intellij