<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Definitely +1.</div><div class=""><br class=""></div>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.<div class=""><br class=""></div><div class="">I really like what AppCode from JetBrains does - it allows you to even apply the code style automatically on save and allows you to customize it and have teams share the code style - something like StyleCop in C# (though I've never used it).</div><div class=""><br class=""></div><div class=""><div class="">I do use Swimat (Xcode plugin) fairly often, which enforces spaces between operators, etc.</div><div class=""><br class=""></div><div class="">I've also tried out tailor (<a href="https://tailor.sh" class="">https://tailor.sh</a>) which is fairly nice, but can be too strict at times.</div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On May 18, 2016, at 5:39 PM, Vincent Coetzee via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><div class="">+1</div><div class=""><br data-mce-bogus="1" class=""></div><div class="">I also hate the K&R brace style. Really want the ability to customize the formatting of Swift code.</div><div class=""><br data-mce-bogus="1" class=""></div><div class=""><meta charset="utf-8" class=""><blockquote type="cite" class="quoted-plain-text" style="border-left-width: 2px; border-left-style: solid; border-left-color: #003399; margin: 0px; padding: 0px 12px; font-size: 15px; color: #003399; line-height: 22.5px; white-space: normal; font-family: SFNSText, 'Helvetica Neue', Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;" data-mce-style="border-left-width: 2px; border-left-style: solid; border-left-color: #003399; margin: 0px; padding: 0px 12px; font-size: 15px; color: #003399; line-height: 22.5px; white-space: normal; font-family: SFNSText, 'Helvetica Neue', Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;">On 16 May 2016, at 22:42, Daniel Martín via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:</blockquote><blockquote type="cite" class="quoted-plain-text" style="border-left-width: 2px; border-left-style: solid; border-left-color: #003399; margin: 0px; padding: 0px 12px; font-size: 15px; color: #003399; line-height: 22.5px; white-space: normal; font-family: SFNSText, 'Helvetica Neue', Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;" data-mce-style="border-left-width: 2px; border-left-style: solid; border-left-color: #003399; margin: 0px; padding: 0px 12px; font-size: 15px; color: #003399; line-height: 22.5px; white-space: normal; font-family: SFNSText, 'Helvetica Neue', Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"><br class=""></blockquote><blockquote type="cite" class="quoted-plain-text" style="border-left-width: 2px; border-left-style: solid; border-left-color: #003399; margin: 0px; padding: 0px 12px; font-size: 15px; color: #003399; line-height: 22.5px; white-space: normal; font-family: SFNSText, 'Helvetica Neue', Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;" data-mce-style="border-left-width: 2px; border-left-style: solid; border-left-color: #003399; margin: 0px; padding: 0px 12px; font-size: 15px; color: #003399; line-height: 22.5px; white-space: normal; font-family: SFNSText, 'Helvetica Neue', Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;">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<a href="https://bugs.swift.org/browse/SR-146" data-mce-href="https://bugs.swift.org/browse/SR-146" class="">https://bugs.swift.org/browse/SR-146</a>, we now have decoupled indenting logic from SourceKit into its own library, and a "swift-format" tool is in the making.</blockquote><blockquote type="cite" class="quoted-plain-text" style="border-left-width: 2px; border-left-style: solid; border-left-color: #003399; margin: 0px; padding: 0px 12px; font-size: 15px; color: #003399; line-height: 22.5px; white-space: normal; font-family: SFNSText, 'Helvetica Neue', Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;" data-mce-style="border-left-width: 2px; border-left-style: solid; border-left-color: #003399; margin: 0px; padding: 0px 12px; font-size: 15px; color: #003399; line-height: 22.5px; white-space: normal; font-family: SFNSText, 'Helvetica Neue', Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"><br class=""></blockquote><blockquote type="cite" class="quoted-plain-text" style="border-left-width: 2px; border-left-style: solid; border-left-color: #003399; margin: 0px; padding: 0px 12px; font-size: 15px; color: #003399; line-height: 22.5px; white-space: normal; font-family: SFNSText, 'Helvetica Neue', Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;" data-mce-style="border-left-width: 2px; border-left-style: solid; border-left-color: #003399; margin: 0px; padding: 0px 12px; font-size: 15px; color: #003399; line-height: 22.5px; white-space: normal; font-family: SFNSText, 'Helvetica Neue', Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;">I am working on adding support for different coding styles to libIDE. For example, with my changes you could decide how a case label should be indented with respect to its parent switch context, among other things. The current, hard coded indenting decisions in libIDE could be named the "Apple" style, just like Clang supports Google, LLVM, Mozilla, coding styles for C++. Also, this is something that can be supported by external tools like Xcode quite easily.</blockquote><blockquote type="cite" class="quoted-plain-text" style="border-left-width: 2px; border-left-style: solid; border-left-color: #003399; margin: 0px; padding: 0px 12px; font-size: 15px; color: #003399; line-height: 22.5px; white-space: normal; font-family: SFNSText, 'Helvetica Neue', Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;" data-mce-style="border-left-width: 2px; border-left-style: solid; border-left-color: #003399; margin: 0px; padding: 0px 12px; font-size: 15px; color: #003399; line-height: 22.5px; white-space: normal; font-family: SFNSText, 'Helvetica Neue', Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"><br class=""></blockquote><blockquote type="cite" class="quoted-plain-text" style="border-left-width: 2px; border-left-style: solid; border-left-color: #003399; margin: 0px; padding: 0px 12px; font-size: 15px; color: #003399; line-height: 22.5px; white-space: normal; font-family: SFNSText, 'Helvetica Neue', Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;" data-mce-style="border-left-width: 2px; border-left-style: solid; border-left-color: #003399; margin: 0px; padding: 0px 12px; font-size: 15px; color: #003399; line-height: 22.5px; white-space: normal; font-family: SFNSText, 'Helvetica Neue', Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;">Do you think this is a good feature to have?</blockquote><blockquote type="cite" class="quoted-plain-text" style="border-left-width: 2px; border-left-style: solid; border-left-color: #003399; margin: 0px; padding: 0px 12px; font-size: 15px; color: #003399; line-height: 22.5px; white-space: normal; font-family: SFNSText, 'Helvetica Neue', Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;" data-mce-style="border-left-width: 2px; border-left-style: solid; border-left-color: #003399; margin: 0px; padding: 0px 12px; font-size: 15px; color: #003399; line-height: 22.5px; white-space: normal; font-family: SFNSText, 'Helvetica Neue', Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"><br class=""></blockquote><blockquote type="cite" class="quoted-plain-text" style="border-left-width: 2px; border-left-style: solid; border-left-color: #003399; margin: 0px; padding: 0px 12px; font-size: 15px; color: #003399; line-height: 22.5px; white-space: normal; font-family: SFNSText, 'Helvetica Neue', Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;" data-mce-style="border-left-width: 2px; border-left-style: solid; border-left-color: #003399; margin: 0px; padding: 0px 12px; font-size: 15px; color: #003399; line-height: 22.5px; white-space: normal; font-family: SFNSText, 'Helvetica Neue', Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;">--</blockquote><blockquote type="cite" class="quoted-plain-text" style="border-left-width: 2px; border-left-style: solid; border-left-color: #003399; margin: 0px; padding: 0px 12px; font-size: 15px; color: #003399; line-height: 22.5px; white-space: normal; font-family: SFNSText, 'Helvetica Neue', Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;" data-mce-style="border-left-width: 2px; border-left-style: solid; border-left-color: #003399; margin: 0px; padding: 0px 12px; font-size: 15px; color: #003399; line-height: 22.5px; white-space: normal; font-family: SFNSText, 'Helvetica Neue', Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;">Daniel Martín</blockquote></div><div class=""><span class=""><br data-mce-bogus="1" class=""></span></div><div class=""><span class="">Vince Coetzee </span></div></div>_______________________________________________<br class="">swift-evolution mailing list<br class=""><a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-evolution<br class=""></div></blockquote></div><br class=""></div></div></body></html>