Published by Steven Barnegren on 2024-08-06
Comment Wrapper Overview
What is Comment Wrapper? Comment Wrapper is an Xcode source editor extension that allows users to format comments to wrap at a certain line length. It helps to improve the readability of long comments that become difficult to read because they become very long horizontally. The app maintains the leading comment prefix and indenting while wrapping comments at line lengths of 40, 60, or 80. It also provides the functionality to unwrap and re-wrap comments, making it easy to edit comments in place. Additionally, Comment Wrapper won't wrap code examples in documentation.
1. Comment Wrapper is an Xcode source editor extension that can format comments to wrap at a certain line length.
2. Once you've wrapped a comment, you might want to edit it in place, although adding or removing characters an a particular line will make it too long or too short.
3. You can use Comment Wrapper's 're-wrap' functionality to re-wrap the comment.
4. /// This is a long comment that descripes some behavior.
5. /// This is a long comment that descripes some behavior.
6. Long comments are difficult to read because they become very long horizontally.
7. /// to read because they become very long horizontally.
8. The result will be of a type x, y or z.
9. The result will be of a type x, y or z.
10. // and secondProtocol.
11. // and secondProtocol.
Download and Install Comment Wrapper for Xcode - PC
Download for PC - server 1 -->Intel, 64-bit processor, OS X 10.7 or later.
Compactible OS list:Yes. The app is 100 percent (100%) safe to download and Install. Our download links are from safe sources and are frequently virus scanned to protect you
Needs work
Useless to me, since my line widths are 100 chars, and the extension only supports 40, 60 or 80. Worse, if I select comment lines wrapped to 100 chars and try to wrap them to 80, it doesn't wrap correctly. I realize people use different line widths, but does _anyone_ use less than 80 chars? The 40 and 60 options seem silly. Why not remove those and add 100 and 120? Even better, give the app itself a minimal UI that allows customizing the wrap width.
Decent, but doesn't support wider margins than 80
This works great for 40, 60, and 80 character widths, but doesn't do any others. It would be great if it supported 100, 120, etc., and even better would be for it to support arbitary widths.
Fantastic
This extension is wonderful and saves me a lot of time. The only issue I found is that if you line-select a sequence of comment lines by triple-clicking (so that a range of lines are selected, rather than a range of characters), and choose Rewrap, then the line of code that follows the selection will be incorrectly wrapped as part of the comment. Perhaps this issue is caused by the trailing newline character in the selection. It is easy enough to work around this by making a text selection without triple-clicking, of course. Also, for bonus points, it would be nice if the selection intelligently tracked the rewrapped text, rather than being left unmodified as if it was still defined in terms of the original text. However, that is all really minor nitpicking. Thank you so much for writing this extension. I've been manually reformatting comment paragraphs since I started using Xcode, and your extension brings unbounded joy and happiness to my day.
Leave a review or comment