I have a php script running which writes to a logfile. I opened the logfile in Notepad++ to see any new content. But i noticed that the content is only refreshing after Notepad++ looses the focus and receives the focus again.
Is there a way to refresh the page manually just like a page refresh with F5 on webbrowsers, or even better, automatically refresh?
In order to do this, go to ? -> Update Notepad++ and it will automatically detect a new update package. Update Notepad++ normally. Show activity on this post.
Alternately, the Settings > Preferences > MISC > File Status Auto-Detection 🛈 pulldown options allow you to Disable status auto-detection, which means Notepad++ won't look for external changes.
EDIT on 2020-04-10: as per Eric Hirst's comment here below (thanks!) apparently now this feature is mapped out of the box to Ctrl + R.
Yes, the Reload from Disk
feature is built-in. By default it's not mapped to any keyboard shortcut, though, so you will have to do it yourself:
Settings -> Shortcut mapper
then choose Modify
and map it to your favorite hotkey. Mine is usually mapped to Ctrl + R.
Notepad++ has a file monitoring option that is designed for log files. The following extract from the release notes describes the facility and how to use it.
Notepad++ 6.9.2 released
18 May 2016 01:23:00
Log Monitoring is one of most wanted features. It is in v6.9.2 now. As indicated its name, Log Monitoring allows users to monitor log files' writting, update by scrolling to the last line while every modification, just like Unix command "tail -f". Click on "eye icon" on toolbar or use menu "View->Monitoring (tail -f)" to activate/disactivate this command
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With