Stop Notepad++ warning if file has been modified from outside
Settings → Preferences → Misc. → Uncheck Enable under File Status Auto-Detection
Also, as Jet pointed out, you can also have 'Update silently' checked if you want it to auto-update the file.
Settings -> Preferences -> MISC. tab
In the section that says File Status Auto Detection
make sure that Enable
is unchecked