Re: [swift-evolution] Support for coding styles and "swift-format" tool

2016-05-18 Thread Michael Peternell via swift-evolution
What I would like even more is editor support with this stuff. And I think the "swift-format" tool could probably help here too. I remember a time when we had problems with LF vs. CR vs. CRLF line endings. How did Sublime Text Edit (or any other sane editor) solve this issue? Do we all have to

Re: [swift-evolution] Support for coding styles and "swift-format" tool

2016-05-18 Thread Krystof Vasa via swift-evolution
Definitely +1. I've had a long discussion about this from one of the Xcode developers a few months back, pointing out that given how long has Xcode been around it has really really poor support for customizing the codestyle. I really like what AppCode from JetBrains does - it allows you to

Re: [swift-evolution] Support for coding styles and "swift-format" tool

2016-05-18 Thread Vincent Coetzee via swift-evolution
+1 I also hate the K brace style. Really want the ability to customize the formatting of Swift code. On 16 May 2016, at 22:42, Daniel Martín via swift-evolution wrote: As Swift is getting traction in more and more platforms outside of Apple, we can expect that

Re: [swift-evolution] Support for coding styles and "swift-format" tool

2016-05-18 Thread Jeremy Pereira via swift-evolution
+1,000,000 I hate the K brace style. :) What I would really like is something similar to Eclipse’s system that pretty much allows you to customise almost every aspect of the Java formatting style to your own preferences and also export them in a handy XML file. > On 16 May 2016, at 22:42,

Re: [swift-evolution] Support for coding styles and "swift-format" tool

2016-05-17 Thread Jacob Bandes-Storch via swift-evolution
It would be awesome if Xcode exposed per-file or per-project formatting settings, and could enforce them in the editor. I hope someone from the dev tools group will be able to comment (and help guide the implementation of this) if there are plans for such a feature. Jacob On Tue, May 17, 2016 at

Re: [swift-evolution] Support for coding styles and "swift-format" tool

2016-05-17 Thread Shawn Erickson via swift-evolution
I would love to see flexible formatting styles be more easily available like this. -Shawn On Tue, May 17, 2016 at 10:33 AM Daniel Martín wrote: > As Swift is getting traction in more and more platforms outside of > Apple, we can expect that many coding styles

[swift-evolution] Support for coding styles and "swift-format" tool

2016-05-17 Thread Daniel Martín via swift-evolution
As Swift is getting traction in more and more platforms outside of Apple, we can expect that many coding styles different from what Apple imposes with SourceKit's indenting rules will emerge. According to https://bugs.swift.org/browse/SR-146, we now have decoupled indenting logic from