Search code examples
xcodebookmarks

Can I add bookmarks in Xcode 4?


Can I add bookmarks at certain code lines in Xcode 4? I'm currently using breakpoints for this purpose, but when I add/delete some code before the positions of the breakpoints, they don't shift accordingly, and therefore no longer point to the original lines. I have to manually adjust them. That's too bad.


Solution

  • You can use #pragma mark My Fancy Bookmark directly in your code and even #pragma mark - for a separation line. The bookmarks will appear under the title bar when you click on the name of the current function.