"Keep this file in editor?"

  • Hi!

    I love notepad++. I use it in conjunction with WinSCP. I work 20+ files simultaneously often. When I come back from hibernation, the FTP session has timed out and I get 20+ of these dialog boxes saying that the file doesn’t exist anymore.

    I looked, but can’t find how to tell Notepad++ to always “yes” or always “no” to this.


  • Hello @Prokop-Suchanek,

    there isn’t such feature. Unfortunately it is something which cannot be easily solved.
    Not sure if this helps you but the only thing you can do is to disable file status detection.


  • I agree with this, it is extremely annoying. I often view temporary files from other applications, which are then deleted. Then switching to notepad++ gives the dialog.

    I’m not sure why it would be hard to sort out, just don’t ask the question and keep the file.

    Or probably better to make it an option to either keep the file, don’t keep the file, or ask each time.


  • This wouldn’t be difficult to create some configurability for.
    Here is what I am thinking and how I think it would solve this issue for everyone.

    A 3 option Radio, in the settings that contains the following:

    1. Ask how to treat files that have changed or are missing. (Default)
    2. Don’t Ask and keep the file open. (This makes the tab icon red.)
    3. Don’t ask and close the missing or changed file.

    This is just an immediate idea to set people on the right track for how this can work, and can obviously have more options than the ones I listed.

    For those who are stumbling onto this topic looking for a solution,
    I ask you to comment here as well to at least show that this is something you would like seen changed and show support for an amazing editor.

  • ; Workaround written in AHK for windows user:

    IfWinActive,ahk_class Notepad++,Keep this file in editor?
    WinWaitNotActive,% at

  • ; Workaround written in AHK for windows user:

    ; wrong IfWinActive,ahk_class Notepad++,Keep this file in editor?
    IfWinActive,Keep non existing file ahk_class #32770
    WinWaitNotActive,% at

  • I know I am resurrecting an ancient topic, but since a 2021 topic referred back to this thread, I thought I would correct a misunderstanding from this thread, which hadn’t been addressed.

    I checked Notepad++ v6.6.6 from June 2014 (two years before this thread), Notepad++ v7.0 (from Sep 2016, a few months after this thread), and the most-recent Notepad++ v7.9.5 from March 2021, and all three have this feature: specifically, there is a way to turn off that dialog.

    Settings > Preferences > MISC > File Status Auto-Detection, and select Disable in the drop down (or uncheck Enable’s checkbox in v6.6.6). Once that’s disabled, Notepad++ will no longer poll the filesystem, looking for either file deletions or for updates to the file, and you won’t be prompted again. With the Auto-Detection disabled, I do not see the “This file has been modified by another program” dialog, and disabling that option also eliminated the “This file … doesn’t exist anymore”, which this topic was complaining about.

Log in to reply