'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
Select a file in the Project View panel
Hit the
Edit | Bookmarks | Add Mnemonic Bookmarkshortcut (Ctrl+F11 here on Windows)Select the mnemonic (I suggest selecting numeric
0..9for a fast keyboard navigation since they have default shortcuts already assigned).That's it. Now you can press Ctrl + digit (Ctrl + 0 in this example) to quickly open that file.
NOTES:
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).
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)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.Shortcuts can be changed at the usual
Settings/Preferences | Keymapscreen:
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 |




