• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: markers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: Re: markers
  • Next by Date: Re: Xcode-users Digest, Vol 14, Issue 11
  • Previous by thread: Re: markers
  • Next by thread: Re: markers
  • Index(es):
    • Date
    • Thread