295

How can one automatically reload modified files in Notepad++? The confirmation step is annoying, and is completely unnecessary in some situations.

Franck Dernoncourt
  • 24,246
  • 64
  • 231
  • 400
mjsr
  • 6,778

6 Answers6

388

You can disable the confirmation in the settings:

Settings -> Preferences -> MISC. -> Update silently

enter image description here

Wouter
  • 1,701
Lesmana
  • 20,621
93

There is a nice plugin called Document monitor (Can be found and installed from the Plugins => Plugin Manager => show Plugin Manager menu),

It updates the opened files every 3 seconds. Together with the option to "scroll to last line after update", it will have the ability to "tail" a log file as wanted.

After the plugin installation, activate it by clicking:

Plugins => Document monitor => start to monitor

Franck Dernoncourt
  • 24,246
  • 64
  • 231
  • 400
Raz Maimon
  • 1,047
71

For monitoring an individual log file, use the View > Monitoring (tail -f) option (thanks to https://superuser.com/a/1246651/17025).

This will keep the file up to date, and also keep the end of the file visible (which is not always exactly what you want); it also is a setting for each individual file rather than a global setting.

This approach is not usable if you want to edit the file as well - it keeps it in read-only mode.

David Fraser
  • 3,717
9

Both of the above commands are not working properly.

There is a command in the File menu, 'Reload from disk' which works perfectly.

I have made a shortcut Alt + R which makes it very handy. Yet, not automatic though.

Andrea
  • 1,536
Praveen
  • 117
5

In newer versions of Notepad++, click the eye icon which described as Monitoring (tail -f)

enter image description here

Franck Dernoncourt
  • 24,246
  • 64
  • 231
  • 400
2

I typically have multiple files open, and after I update them I want all open files to automatically reload without having to click on each one separately. The current way to do this is by selecting the setting called "Enable for all opened files". In my case I like to be prompted for every file so I get to see what it looks like before and after I accept the prompt, but I want it to happen all in one shot as soon as I bring Notepad++ into focus, which is what this setting enables. If you don't want to be prompted at all, you should also select the "Update silently" option:

enter image description here

TTT
  • 735
  • 5
  • 13