Skip to content

Instantly share code, notes, and snippets.

@coderatchet
Created September 8, 2016 01:50
Show Gist options
  • Save coderatchet/0df7475e0e167eca29422ca46d0d07cb to your computer and use it in GitHub Desktop.
Save coderatchet/0df7475e0e167eca29422ca46d0d07cb to your computer and use it in GitHub Desktop.
Turn off code formatting for code block in Intellij Idea
# open intellij settings
# Editor -> Code Style -> (in context window) Formatter Control -> tick "Enable formatter markers in comments"
# @formatter:off
...
(r"/api/myapp/([0-9]+)/module/(some|uberlly|rediculouslly|long|line|of|code|that-will-probably|be-auto-formatted|into-multiple|lines|but|I've|arranged|like|this|intentionally)/datboi/export", my.awesome.over.80.line.Class)
...
# @formatter:on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment