Skip to content

Instantly share code, notes, and snippets.

@sbchapin
Created October 6, 2022 16:20
Show Gist options
  • Save sbchapin/2e3fcb4ae974a2f3371cd32b1c23e90f to your computer and use it in GitHub Desktop.
Save sbchapin/2e3fcb4ae974a2f3371cd32b1c23e90f to your computer and use it in GitHub Desktop.
Sam's default .scalafmt.conf
# VSCode: use the Metals BSP plugin to integrate - https://marketplace.visualstudio.com/items?itemName=scalameta.metals
# IntelliJ: use the built-in support with scalafmt - https://www.jetbrains.com/help/idea/work-with-scala-formatter.html
# Required:
version = "3.5.3"
runner.dialect = scala213
# Optional:
style = defaultWithAlign # Align pattern matching statements, variable decls, function defs, adjacent symbols, etc...
maxColumn = 120 # Monitors of the 20th century rejoice
align.stripMargin = true # Strip margins off "multiline comments"
assumeStandardLibraryStripMargin = true # Align and format "multiline comments" for "".stripMargin
project.git = true # Only format files tracked by git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment