'How to make quick access to log file of a project?

If there is a way in PhpStorm 2021.1 to open some files from my project ? I want quick access to /storage/logs/laravel.log file...

Thanks in advance!



Solution 1:[1]

Use Bookmarks. In particular: Bookmark with mnemonic. It works on lines as well as whole files.

https://www.jetbrains.com/help/phpstorm/bookmarks.html#add-mnemonic-line-bookmark

  1. Select a file in the Project View panel

  2. Hit the Edit | Bookmarks | Add Mnemonic Bookmark shortcut (Ctrl+F11 here on Windows)

  3. Select the mnemonic (I suggest selecting numeric 0..9 for a fast keyboard navigation since they have default shortcuts already assigned).

    enter image description here

  4. That's it. Now you can press Ctrl + digit (Ctrl + 0 in this example) to quickly open that file.

    enter image description here


NOTES:

  1. If you delete the bookmarked file (pretty typical situation for the log files) then the bookmark will be automatically removed (maybe not straight away but on next project opening but still).

  2. You can also use Edit | Bookmarks | Go to Mnemonics... (Ctrl+Shift+F11 is the default shortcut here on Windows) to navigate between multiple mnemonic bookmarks (if you use Letter mnemonic and do not have custom shortcut for that)

  3. You can also use plain/ordinary bookmarks (not mnemonics): the only difference is that you will have to use Bookmarks toolwindow or Bookmarks popup (Edit | Bookmarks | Show Line Bookmarks... Shift + F11 here on Windows) to locate and navigate to them.

    enter image description here

  4. Shortcuts can be changed at the usual Settings/Preferences | Keymap screen:

    enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1