1

I need a tool for Xcode that do an autoformat to my c++ code, I checked this answer link1, I checked this link2 and I checked "TextMate" also.

but I do not know is that possible to create a custom code format like

1- one space before and after both "=" and "=="

2- if condition format should be like the following format

if (condition || condition) {
}

the "{" should be in the same line of "if", one space between each condition, and the final "}" should be in new line.

I prefer to use some addon tool in the xcode not external one.

Community
  • 1
  • 1
Hazem Abdullah
  • 1,837
  • 4
  • 23
  • 41
  • Have you checked-out `clang-format` and the Xcode plugin to use it? It's a bit of pain to get (you have to use a pre-built binary from `llvm` themselves, last time I installed it). – trojanfoe Apr 14 '15 at 08:48
  • @chesh, that's one did not support custom format! – Hazem Abdullah Apr 14 '15 at 13:46
  • 1
    @HazemAbdullah have you taken a look at users romanvbabenko and matm answers in the post I linked ? – chesh Apr 14 '15 at 13:57

0 Answers0