Robert Sinclair
Robert Sinclair

Reputation: 5406

Jump between highlights in PhpStorm

Is there a way to navigate up and down the highlights as in the screenshot?

I read the article here: https://www.jetbrains.com/help/phpstorm/navigating-through-the-source-code.html but couldn't find what I'm looking for

Basic usage is I just want to sprinkle a bunch of highlights around the code and be able to jump between them using a shortcut.

I know that an alternative would be to use the favorites, but I want to see if it can be done using highlights.

I'm on a Mac.

enter image description here

Upvotes: 0

Views: 80

Answers (2)

Dmitrii
Dmitrii

Reputation: 3557

I just want to sprinkle a bunch of highlights around the code and be able to jump between them using a shortcut.

Navigate > Back and Navigate > Forward should work ideally in that case.

Upvotes: 1

Jeto
Jeto

Reputation: 14927

According to your comment above, you're using these breakpoints as a kind of visible bookmark within your code. However, IntelliJ does have a Bookmarks feature.

I would therefore suggest to simply alter the way they appear so they stick out more:

  • Go to File | Settings | Editor | Color Scheme | General
  • On the right pane, expand/select Editor | Bookmarks
  • Adjust the background and/or foreground colors on the right (and more if needed)

Here's an example with funky bookmarks (pardon my light theme):

enter image description here

You can then navigate between them using:

Navigate | Bookmarks | Previous Bookmark

Navigate | Bookmarks | Next Bookmark

Upvotes: 0

Related Questions