Comment Wrapper (for Xcode)

An Xcode Source Editor extension that wraps your comments

Wrapping.gif

Want to edit your comments? Comment Wrapper can re-wrap edited comments

Re-Wrapping.gif

Features

  • Maintains your leading comment prefix (eg. // or ///)
  • Maintains indenting
  • Wraps at line lengths of 40, 60 or 80
  • Re-wraps edited comments
  • Wrapping documentation? Won't wrap your code examples

Installation

Either:

Then:

  1. Run the application (you can quit it after this)
  2. Open System Preferences
  3. Open the Extensions pane
  4. Find CommentWrapper and enable Xcode Source Editor extension
  5. Highlight some code in Xcode and choose an action under Editor -> Comment Wrapper

Comment Wrapper is open source! Contribute on GitHub