WarWithinMe / better-align

A vscode extension to provide better vertical alignment
Other
75 stars 39 forks source link

Customizable symbol list #13

Open megamaddu opened 6 years ago

megamaddu commented 6 years ago

I'd like to also align additional symbols such as ::, ., ->, <-, etc. It probably doesn't make sense to keep extending this plugin with every possible symbol, but it might be feasible to allow both global and per-language symbol customization. Something like:

"alignment.symbols": {
  "global": [ "..." ],
  "purescript": [ "=", "==", "/=", "::", ".", "->", "<-" ]
}
brunnerh commented 6 years ago

Per-language settings should already be supported by VS Code itself, e.g.

"[fsharp]": {
    "editor.insertSpaces": true
}

Though this probably does not compose well, as it just overrides the given setting. Could be worked around with a separate setting, so you might have align.tokens and align.additionalTokens, where you would edit the latter in the per-language section. Bit of a hack, i suppose.