"remember last used directory" doesn't work?



  • why do I always get notepad++'s default folder each time I want to save a new file,
    even though I’ve selected “remember last used directory”?



  • @patrickdrd

    It works for me with Notepad++ v7.5.9. Here’s what I tried:

    • create new tab
    • modify it by typing some text
    • saving it somewhere (e.g. desktop)
    • click around working with other files (probably this doesn’t matter)
    • create another new tab
    • modify it
    • save it -> directory prompted with is the one used earlier (e.g. desktop)


  • ok, this works for me too, but what about first launch?



  • @patrickdrd

    I suppose it isn’t part of what is remembered from run to run of Notepad++.

    I tend to use the Follow current document setting for Default Directory. I find it much more useful but we all have our own ways of working. :-)



  • well, yes, I understand what you mean,
    that’s what I had before too, but I didn’t like the fact that the initial (empty) file is defaulted to notepad++'s directory and I thought that would change that, but no, it isn’t…



  • @patrickdrd

    As I always have some files in tabs when Notepad++ starts (via Remember current session for next launch), and with Follow current doc set, I NEVER see Notepad++'s directory when I do save/open… :-)



  • I like loading it blank, so it would be great if there was a default directory



  • @patrickdrd

    Sometimes we have to make compromises…but if you’re unwilling to do that and unless someone else can chime in and say how you can make it happen, your best bet is going to be submitting a Feature Request for it. And then waiting. Unless you are a C++ programmer and can work on it yourself and then submit that work for inclusion in a future release of N++.



  • @patrickdrd

    Windows has a builtin way to specify the starting directory for any shortcut you run – and I am assuming that since you claim to be loading a blank NPP window, you’re loading from a shortcut instead of from a Right Click menu.

    To change the Windows default directory, Right Click on your shortcut, select Properties (‡), go to the Start In field, and enter the directory you’d like to be your default

    ‡: For a normal shortcut, like on your desktop, you just have to select Properties. If the shortcut is pinned to your taskbar (like it is for me), RClick, then RClick on “notepad++” near the bottom of the menu, then select Properties. If it’s in your Start Menu (either pinned to the quick start area, or if you go down to N > Notepad++), then RClick on the icon, select More, select Open File Location; this should open Windows Explorer in the directory where that shortcut actually lives. In that Windows Explorer, you can RClick on Notepad++ shortcut and select the Properties, as above.


Log in to reply