230

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

310

You can disable the confirmation in the settings:

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

enter image description here

| improve this answer | |
  • 72
    That's one badly named setting ... – sakra Dec 4 '12 at 12:57
  • 23
    Note that as of v6.3, "Update silently" only updates the file when its tab receives focus. Search functionality therefore accesses the old buffer and might show inaccurate results. – Timbo Mar 22 '13 at 0:30
  • 5
    I wish NotePad++ had a few more 'Yes all' buttons. – Franck Dernoncourt Jul 4 '14 at 20:37
  • 8
    Good heavens. The confirmations almost made me mad. Thanks! – Martin Vseticka Dec 10 '14 at 10:44
  • 7
    The "scroll to the last line after update" setting may also be helpful for log viewing scenarios. – Chris Marisic Aug 7 '15 at 19:24
86

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

| improve this answer | |
  • 6
    +1 for for a great plugin. This is exactly what I need. Better than accepted answer. – Seidleroni Dec 16 '14 at 15:03
  • 7
    Now there is a monitoring function build into notepad++ since version 6.9.2 – Jon Dec 19 '16 at 22:46
  • 11
    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 7 '17 at 14:27
  • @Mathias : not without the link to the referred plugin. – Sopalajo de Arrierez Oct 20 '17 at 0:40
28

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.

| improve this answer | |
  • 6
    This answer is buried, but is by far the most correct solution. It uses a built-in feature, doesn't disable warnings for all other files, and doesn't require installation of a 3rd party plugin. Hopefully this gets more attention and votes! – Derek_6424246 Jun 24 '19 at 15:23
  • 1
    This approach will also set your file as read-only (which is bad in my current case) – Jason Angel May 7 at 0:26
  • This works without the focus on Notepad++. Nice! – Intrastellar Explorer May 9 at 9:23
10

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.

| improve this answer | |
  • 2
    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 8: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

Not the answer you're looking for? Browse other questions tagged or ask your own question.