279

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

AndrewRalon
  • 113
  • 7
mjsr
  • 6,438
  • 4
  • 29
  • 37

6 Answers6

369

You can disable the confirmation in the settings:

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

enter image description here

Wouter
  • 1,581
  • 1
  • 13
  • 30
Lesmana
  • 19,803
  • 6
  • 45
  • 44
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 don't forget to activate it by clicking:

Plugins => Document monitor => start to monitor

Raz Maimon
  • 1,047
  • 7
  • 3
  • 6
    +1 for for a great plugin. This is exactly what I need. Better than accepted answer. – Seidleroni Dec 16 '14 at 15:03
  • 10
    Now there is a monitoring function build into notepad++ since [version 6.9.2](https://notepad-plus-plus.org/news/notepad-6.9.2-released.html) – Jon Dec 19 '16 at 22:46
  • 22
    To expand on @Jonathan727 and save everyone a click: "Click on "eye icon" on toolbar or use menu "View->Monitoring (tail -f)" to activate/disactivate this command". – Stefan van den Akker Jan 16 '17 at 15:36
  • 3
    should be the accepted answer... – Mathias Feb 07 '17 at 14:27
  • @Mathias : not without the link to the referred plugin. – Sopalajo de Arrierez Oct 20 '17 at 00:40
  • 1
    @SopalajodeArrierez : Notepad++ has a built in plugin manager. Therefor it is not necessary to provide a link. Also it is well described how to install the plugin. Anyway if you want to have a link here's the source code https://sourceforge.net/projects/npp-plugins/files/DocMonitor/ – Mathias Oct 23 '17 at 08:31
  • Thanks for the link, @Mathias . This plugin seems to be only working on 32 -bit versions of NotePad++ . And there is no such "Plugins => Plugin Manager => show Plugin Manager menu" on v7.5.1. – Sopalajo de Arrierez Oct 26 '17 at 10:42
  • didn't noticed that. Maybe you have to ask your self: "Why do I need the 64 bit version of notepad++?". If you don't find any valuable answers but something like: "Because it's state of the art to go for 64-bit" or "I think 64 is better" I would simply install the 32 bit version and use the plugin system. Otherwise you could still brew your own notepad++ including the plugin into the source. Good luck with that option ;-) – Mathias Nov 06 '17 at 11:26
  • document monitor is never listed under plugins for me... :(((( – oldboy Jul 28 '18 at 05:27
  • @Mathias literally EVERY company tells you to install 64bit if you have a 64 bit OS, it is ingrained learned behavior .why would you assume someone would try the 32 bit version of the same software after the 64 bit version fails to demonstrate that functionality? – Karan Harsh Wardhan Apr 10 '19 at 10:04
  • @kkarakk since I've made this comment a lot has changed. Notepad++ has now a built in monitor option (--> plugin is not needed any longer). However back then the 64 bit version had no plugin manager and the monitor option was also not there, so the easiest way was to install the 32 bit version and having plugins. That's why. The OS has nothing todo with the programm. 64 bit programms just can consume more than roughly 2GB of memory. BTW a lot of apps, services, etc. are still compiled in x86..... – Mathias Apr 10 '19 at 14:31
59

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,137
  • 2
  • 23
  • 26
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,516
  • 4
  • 17
  • 19
Praveen
  • 117
  • 1
  • 2
  • 3
    Does not answer the question. The asker is looking for a way to suppress the dialog that asks if you want to reload and do this automatically. – R-D Jan 31 '14 at 08:27
  • @Roald van Doorn: The answer to the question is that there is no solution YET. Praveen gave the next-best solution that is possible NOW. – qedstar Dec 10 '15 at 13:04
  • I think there is a built-in shortcut `Ctrl + R` – xjcl Mar 09 '21 at 17:08
4

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

enter image description here

Alireza Fattahi
  • 283
  • 1
  • 3
  • 12
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
  • 683
  • 5
  • 11