Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6627873
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T22:03:54+00:00 2026-05-25T22:03:54+00:00

This is mostly for curiosity’s sake. I’ve known for awhile that Xcode is capable

  • 0

This is mostly for curiosity’s sake. I’ve known for awhile that Xcode is capable of recognizing comments in the form of // TODO: Something I don't feel like doing now. Adding that line to the source of a file will cause that TODO comment to show up in Xcode’s navigation bar:

enter image description here

I also recently discovered that comments of the form // MARK: Something can achieve the same effect as #pragma marking something. So I can write a comment that looks like:

// MARK: -
// MARK: Future Improvements:
// TODO: Make something better
// TODO: Fix some bug

And Xcode will render it out like this:

enter image description here

Which leads me to wonder: Are there other kinds of comments that Xcode can understand to improve project navigation?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T22:03:54+00:00Added an answer on May 25, 2026 at 10:03 pm

    There is also MARK, FIXME, !!! and ???, e.g.

    // FIXME: this bug needs to be fixed
    

    and

    // ???: WTF ???
    

    You can see where these are defined in /Applications/Xcode.app/Contents/OtherFrameworks/XcodeEdit.framework/Versions/A/Resources/BaseSupport.xclangspec (or /Developer/Library/PrivateFrameworks/XcodeEdit.framework/Resources/BaseSupport.xclangspec for older versions of Xcode). Presumably you could also add your own tags here if you wanted to but I have not actually tried this. Here is the relevant section in BaseSupport.xclangspec:

    {
        Identifier = "xcode.lang.comment.mark";
        Syntax = {
            StartChars = "MTF!?";
            Match = (
                "^MARK:[ \t]+\(.*\)$",
                "^\(TODO:[ \t]+.*\)$",       // include "TODO: " in the markers list
                "^\(FIXME:[ \t]+.*\)$",      // include "FIXME: " in the markers list
                "^\(!!!:.*\)$",              // include "!!!:" in the markers list
                "^\(\\?\\?\\?:.*\)$"         // include "???:" in the markers list
            );
            // This is the order of captures. All of the match strings above need the same order.
            CaptureTypes = (
                "xcode.syntax.mark"
            );
            Type = "xcode.syntax.comment";
        };
    },
    

    These tags are also supported in the BBEdit text editor and its freeware sibling TextWrangler.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is something that's I've wanted to know recently, mostly out of curiousity. I'm
I'm posing this question mostly out of curiosity. I've written some code that is
This is a question that arose mostly of pure curiosity (and killing some time).
This is mostly for curiosity's sake, as there are better ways of implementing almost
This is mostly just out of curiosity, and is potentially a silly question. :)
This question is mostly academic. I ask out of curiosity, not because this poses
This is mostly curiosity, but I've been reading about the history of Visual Studio
This is mostly out of curiosity. I was wandering if anyone has encountered any
This is mostly an out-of-curiosity question. Consider the following functions var closure ; function
I have an ItemsControl that looks something like this: <ItemsControl ItemsSource={Binding} PreviewMouseWheel=ItemsControl_PreviewMouseWheel > <ItemsControl.ItemTemplate>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.