Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Refresh document in notepad++

Tags:

notepad++

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?

like image 868
Black Avatar asked Apr 19 '16 12:04

Black


People also ask

How do you refresh a workspace in Notepad ++?

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.

How do I stop autoload in Notepad ++?

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.


2 Answers

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.

Shortcut mapper

like image 160
s.m. Avatar answered Sep 19 '22 20:09

s.m.


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

like image 34
AdrianHHH Avatar answered Sep 20 '22 20:09

AdrianHHH