jmulieri / front-end-alignment

A simple IntelliJ plugin that provides an action for aligning lines of code according to a given regular expression.
MIT License
31 stars 8 forks source link

Front End Alignment

A simple IntelliJ plugin that adds an action, Regex Align, that will align lines of code according to user provided regular expression. The Regex Align action can be found near the bottom of the Code menu. It is also recommended to add a keyboard shortcut, instructions below.

Installing from within IntelliJ

  1. In IntelliJ, navigate to the following menu selection: File => Settings => Plugins
  2. Click the 'Browse Repositories' button
  3. In the search bar in the upper right of the dialog, search for 'Front End Alignment'
  4. Double click the row containing Front End Alignment and follow installation procedure

Installing plugin from jar

  1. In IntelliJ, navigate to the following menu selection: File => Settings => Plugins
  2. Click the 'Install plugin from disk' button
  3. Choose the front_end_alignment.jar file located in this projects root directory
  4. Restart IntelliJ to activate plugin

Adding a keyboard shortcut for 'Regex Align'

  1. In IntelliJ, navigate to the following menu selection: File => Settings => Keymap
  2. In the search bar in the upper right of the dialog, search for 'Regex Align'
  3. Click on one of the rows containing Regex Align
  4. Right click and choose the 'Add Keyboard Shortcut' option
  5. Type your shortcut(ex. Alt+Shift+R) and click OK