Closed mutantcows closed 1 year ago
In VS Code with these settings:
{ "[ruby]": { "editor.defaultFormatter": "castwide.solargraph" }, "solargraph.formatting": true, }
This snippet:
if var1 # first important comment if var2 # second important comment end end
gets autoformatted to:
if var1 && var2 # second important comment end
This is probably specific to RuboCop, which currently provides Solargraph's formatting capabilities. (I'm working on a plugin architecture to allow selecting other formatters.)
Opened rubocop issue
In VS Code with these settings:
This snippet:
gets autoformatted to: