scala-ide / scalariform

Scala source code formatter
http://scala-ide.github.com/scalariform/
MIT License
527 stars 148 forks source link

Is there an opposite of rewriteArrowSymbols? #286

Open jsatk opened 4 years ago

jsatk commented 4 years ago

Re: http://scala-ide.org/scalariform/#rewritearrowsymbols

There's been some discussion recently about unicode arrows being unsafe and preferring ascii arrows and having people use fonts with ligatures if they want fancy-looking arrows.

https://nrinaudo.github.io/scala-best-practices/tricky_behaviours/unicode_operators.html https://github.com/scala/scala/pull/7540

I'd love to be able to enforce an option that rewrote all unicode arrows to ascii arrows. Lots of devs have this settting check in their IntelliJ. Would be nice to just automate it.

FFdhorkin commented 4 years ago

Yes, but it doesn't work. I just filed a bug for it: https://github.com/scala-ide/scalariform/issues/289