Skip to content

Adding a new preference

mdr edited this page Aug 29, 2011 · 4 revisions

Adding a new preference

Add new preference descriptor

Edit PreferenceDescriptor.scala:

case object PlaceScaladocAsterisksBeneathSecondAsterisk extends BooleanPreferenceDescriptor {
  val key = "placeScaladocAsterisksBeneathSecondAsterisk"
  val description = "Place Scaladoc asterisks beneath the second asterisk in the opening '/**', as opposed to the first"
  val defaultValue = false
}

Also add to AllPreferences list in same file.

Add to README.rst

  • Add block about the preference
  • Add to table for Scala style guide
  • Add to command-line args

Add to Maven plug-in

MojoFormatter.scala and ScalariformMojo.java

Update Eclipse

After pushing to master and nightly has been built, can change FormatterPreferencePage.scala to add preference to appropriate tab.

Update ENSIME

After publishing new Scalariform version, update etc/manual.ltx and src/main/scala/org/ensime/config/ProjectConfig.scala with new prefs