Re: markers
Re: markers
- Subject: Re: markers
- From: Mike Swingler <email@hidden>
- Date: Tue, 10 Jan 2017 09:59:34 -0800
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> 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 Swingler Apple 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
References: | |
| >markers (From: "J.E. Schotsman" <email@hidden>) |
| >Re: markers (From: Jens Alfke <email@hidden>) |