How to bookmark code in XCode 4?

aslisabanci picture aslisabanci · Mar 29, 2011 · Viewed 24k times · Source

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 something that I can put and remove with a mouse click and navigate amongst with next and previous, like in VS.

Is there anything that I'm missing?

Answer

steve kim picture steve kim · Jul 21, 2012

Write below comment in your source file that you want bookmarked.

 //<##>

And you can navigate to next / previous with: '^/' or '^?'

  1. <##> means "placeholder of code snippet"
  2. ^/ means "jump to next placeholder"
  3. ^? means "jump to previous placeholder"

thanks