Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable Notepad++ Auto-open previous files without opening Notepad++?

How do I stop Notepad++ from loading all files from the past session?

I know how to do that settings in Notepad++, but the problem is that I once opened a very large file (>10GB) and made the Notepad++ hang up. Notepad++ has already marked that big file in the session and therefore hang up everytime I start the Notepad++. Is there a way I can stop it from loading the past session so it won't hang up every time?

P.S. I have received a report on possible duplicate with this question. This is obviously a different case. At least in that question the notepad++ still starts up normally while in my case I cannot even change the settings normally because the notepad++ just hang while loading the stored version. The answer to this question also provide a good way to change the settings without starting Notepad++, which will be useful in fixing problems caused by settings when the Notepad++ cannot starts normally.

like image 333
cytsunny Avatar asked Jul 21 '16 03:07

cytsunny


People also ask

How do I stop notepad from opening old files?

Disable auto-open of previous files By default, Notepad++ reopens all the files that were open in the last session. To disable that behavior, go to Settings -> Preferences -> Backup and uncheck 'Remember current session for next launch'.

Why is my file opening in notepad?

Answer: This usually indicates that you either do not have Microsoft Excel installed or that you do not have Excel set as the default program for CSV files. Follow the steps below to ensure that Microsoft Excel is set as your default program for CSV files: Start >Default Programs.

How do I open a Notepad file from Notepad?

Its that simple, just use the right click context menu to choose Notepad++ when you want to open a file using Notepad++. You can edit your code files using Notepad++ as our software extension will download the file when you right click and try to open the file using our software.

How do I open Notepad++ history?

Settings > Preferences > Backup tab > Click Verbose Backup This will time stamp a copy of your file every time you save. The saved file has a . bak extension which can be opened by any text editor.


2 Answers

Yes, you can change that setting by modifying the config file.

go to %appdata%\Notepad++ and open config.xml

You should find the following line in there:

<GUIConfig name="RememberLastSession">yes</GUIConfig>

just change it to no and that should do the trick.

like image 87
yzwijsen Avatar answered Oct 20 '22 14:10

yzwijsen


Start from command line:

notepad++ -nosession

"Auto-open previous files" then should be disabled

like image 10
Jacques Houbart Avatar answered Oct 20 '22 15:10

Jacques Houbart