
Creating a bookmark
Bookmarks are great. A bookmark lets you put a flag somewhere in your code so that you have a shortcut to access that code.
A bookmark in PhpStorm has the same meaning as that in a book where a reader puts some indication in the form of some piece of paper, by turning the page corner, or by any means through which the reader can access the page directly.
How to do it...
PhpStorm bookmarks are created with ease. The add bookmark option can be had by going to Navigate | Bookmarks.
The three options available are explained here:
- Toggle Bookmark: This feature enables you to create a bookmark at some specified line of code if it does not exist and to delete a bookmark from some line of code if it does.
- Toggle Bookmark with Mnemonic: This feature enables you to toggle a bookmark with the added ability to be able to access that bookmark using keyboard shortcuts.
Suppose you choose the alphanumeric 0, as shown in the following screenshot, you will be able to access that bookmark by using Ctrl + 0
Show Bookmarks: This is rather a simple feature. It simply lets you view all the bookmarks you created for the project you are working on.