Re: Xcode-users Digest, Vol 14, Issue 11
Re: Xcode-users Digest, Vol 14, Issue 11
- Subject: Re: Xcode-users Digest, Vol 14, Issue 11
- From: Rick Aurbach <email@hidden>
- Date: Tue, 10 Jan 2017 15:59:39 -0500
- Acceptlanguage: en-US
- Thread-topic: Xcode-users Digest, Vol 14, Issue 11
I just checked this out in Xcode 8.2.1. At least for me, // TODO:, // FIXME:, and // MARK: all work, but // !!!: and // ???: do not appear in the function popup. Maybe it’s just me??
Date: Tue, 10 Jan 2017 09:59:34 -0800From: Mike Swingler <email@hidden>To: Jens Alfke <email@hidden>Cc: "J.E. Schotsman" <email@hidden>, XCode mailing list <email@hidden>Subject: Re: markersMessage-ID: <email@hidden" style="font-family: ArialMT; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class=""> email@hidden>Content-Type: text/plain; charset="utf-8"On Jan 10, 2017, at 9:47 AM, Jens Alfke <email@hidden> wrote:
On Jan 10, 2017, at 2:58 AM, J.E. Schotsman <email@hidden <mailto:email@hidden>> wrote:
I read on Stackoverflow that you can use markers // !!!: and // ???: to add comments to code.
I wasn’t sure what you meant by that (anything after “//“ is a comment, after all). Looks like what you mean is that these comments add markers to the function pop-up. I can confirm that this works for me in Obj-C and C++ source files.
Other markers I know of are “// TODO:” and “// FIXME:” All four of these have their own icon that appears in the pop-up before the text.
(There’s also an Xcode plugin available via Alcatraz that causes such comments to be emitted as warnings in the build output, so you _really_ pay attention to them.)
—Jens
We also use “// MARK:” as an identifier, similar to “#pragma mark” in C-based languages. If you notice this is not working in Swift, please send us a bug with your use case.Thanks,Mike SwinglerApple Inc.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden