How to bookmark code in XCode 4?

后端 未结 8 1507
独厮守ぢ
独厮守ぢ 2021-01-31 13:48

I couldn\'t find a way to put a bookmark inside the code in XCode 4. I know about the #pragma mark thing but it\'s not what I\'m looking for. What I need is somethi

8条回答
  •  一整个雨季
    2021-01-31 14:31

    Another option, if anyone is still interested. The following directives will both produce a compiler warning that you can use as a bookmark:

    #pragma message "<# message #>"
    

    or

    #warning <# message #>
    

    If you want to place bookmarks using your mouse: create a code snippet with one of the 2 directives above. Drag & drop it to the line in your source file that you want bookmarked.

    Navigate to next/previous with: Cmd-' and Cmd-Shift-'

提交回复
热议问题