Xcode extension for wrapping comments
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Builds
CommentWrapper.xcodeproj
CommentWrapper.xcworkspace
CommentWrapper
CommentWrapperExt
CommentWrapperTests
Extensions
Pods
.gitignore
.swiftlint.yml
LICENSE
Podfile
Podfile.lock
README.md

README.md


Comment Wrapper
Comment Wrapper

min

An Xcode Source Editor extension that wraps your comments

2018-04-26 21_32_28

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

2018-04-26 21_45_41

Features

  • Maintains your leading comment prefix (eg. //, ///)
  • 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:

  • Get it on the App Store (soon)
  • Download the compiled app
  • Compile from source

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

Author

@SteveBarnegren

License

Comment Wrapper is available under the MIT license. See the LICENSE file for more info.