2

Coming from a C# background with Resharper and all the cool toys, I'm finding my XCode code becomes untidy really quickly. I'm looking for xcode replacements for the following tidy up functions I'm used to using:

  • Auto indent
  • Auto () {} balancing or arrangement
  • Sorting methods in a class (alphabetically)
  • Commenting methods so that the comments show up in intellisense
  • Auto comment methods (like GhostDoc) in c# land
  • Enforcement/Suggestion of naming conventions for methods and variables

If you guys have any other "clean code" tools, please feel free to include.

5
  • 1
    See nshipster.com/swift-documentation for comment conventions so comments automatically show up while writing code. Press command-2 to see symbol navigator and have methods listed alphabetically. – Rob May 24 '15 at 13:35
  • thank you these will help, will add them to the edit part – user230910 May 24 '15 at 13:48
  • 1
    done, thanks, see below – user230910 May 24 '15 at 13:53
  • By the way, I'm not familiar with GhostDoc, but I've generated documentation from my Objective-C classes using AppleDoc and from Swift using Jazzy. – Rob May 25 '15 at 1:27
  • thanks, will add them to the answer too! :) – user230910 May 25 '15 at 6:20
1

Take a look at AppCode which is made by Jet Brains (same company that makes resharper)

0

So far the answer is:

  • Auto-Indent:

Option 1: Go to "Edit - Reindent" code for indenting code

Option 2: Install Alcatraz: http://alcatraz.io/ -- then install a plugin to do this. The one I'm currently using is called BBUncrustifyPlugin

  • Auto () {} balancing or arrangement
  • Sorting methods in a class (alphabetically)

Press command-2 to see symbol navigator and have methods listed alphabetically (displays methods, not actually sorting the code)

  • Commenting methods so that the comments show up in intellisense

See nshipster.com/swift-documentation for comment conventions so comments automatically show up

  • Auto comment methods (like GhostDoc) in c# land

I've generated documentation from my Objective-C classes using AppleDoc and from Swift using Jazzy (thanks Rob)

  • Enforcement/Suggestion of naming conventions for methods and variables

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.