PHPStorm - how to bookmark a line so I can quickly flick back to it

Hi

In Programmers Notepad Ctrl-F2 bookmarks a line, then I can edit elsewhere in the file and press F2 to go back to that line I bookmarked earlier.
How is this done in PHPStorm editor?

Thanks

3 comments
Comment actions Permalink

Hi there,

Navigate | Bookmarks -- http://www.jetbrains.com/phpstorm/webhelp/navigating-with-bookmarks.html

You can set plain bookmark with F11 (shortcut depends on your keymap).

To navigate between bookmarks within the *same file* use "Next Bookmark" / "Previous Bookmark"
To navigate between *all* bookmarks (any file) use Shift+F11 (Show Bookmarks)

The Favorites tool window also contains bookmarks (in addition to actual favorites and breakpoints).

To change existing or assign any missing shortcuts use "Settings | Keymap" (it has search fields to quickly find required action by name or assigned shortcut)

Another possibly usefull action -- "Navigate | Last Edit Location"

0
Comment actions Permalink

Thank you, that is great info

0
Comment actions Permalink

You can also do numbered bookmarks - 0-9. Search in the keymap in settings.

0

Please sign in to leave a comment.