How to fix crashes when you start Notepad++

  • September 8, 2017
  • Read 6,201 times
 

Notepad++ is a terrific Windows notepad replacement, but just like any application, it sometimes has a problem and no longer starts properly. If you find that Notepad++ is crashing when you start it, in my experience there are typically two things that could be wrong; either a problem with a previous session or a problem with an installed plugin.

Notepad++ Crashing at Startup

Thankfully, the developers of Notepad++ included two command line arguments that allow you to start Notepad++ without loading previous sessions or plugins.  These command line arguments are described below

-nosession - This command line argument starts Notepad++ without loading the previous session. In my experience, this command line argument resolves most Notepad++ crashes when it starts as it bypasses a session that may have become corrupt or does not load a file that Notepad++ is having issues with.

-noPlugins - This command line argument will start Notepad++ without loading any plugins. If a plugin has become corrupt and causing Notepad++ to crash when you start it, then you can use this argument to bypass the plugins and then disable them one by one until you find the one causing problems.

To use these arguments, you need to add these arguments after the path of the program when you start it. For example, if Notepad++ is started from D:\Notepad++, you would normally either start it by typing in the search field or Run dialog the command D:\Notepad++\notepad++.exe

If you wish to add a command line argument, you need to append the argument to the end above the normal command. For example, to disable plugins when Notepad++ starts, using the path from the above example you would need to start Notepad++ with the D:\Notepad++\notepad++.exe -noPlugins command instead.

Appending command line arguments can be done in either two ways. The first way is by issuing the command directly and adding them as described above. This can either be done directly from the Windows start menu search field or from a Run dialog.  You can see examples of these arguments being used from the Run dialog, which is opened by entering the Windows+R keyboard combination, below.

No Sessions Command Line Argument

No Plugins Command Line Argument

If you have created a shortcut that starts Notepad++, you can also modify the shortcut and add the argument after the command in the Target field as shown below.

Shortcut

When you have resolved your problem with Notepad++, you can simply start it as normal without the command line arguments.

By using one, or both, of these command line arguments to start Notepad++, you can quickly determine the cause and get Notepad++ starting correctly again.

Notepad++ Working Normally

 

Users who read this also read:

  • Understanding Command Line Arguments and How to Use Them Image
    Understanding Command Line Arguments and How to Use Them

    Command line arguments are extra commands you can use when launching a  program so that the program's functionality will change.  Depending on the program, these arguments can be used to add more features that include specifiying a file that output should be logged to, specifying a default document to launch, or to enable features that may be a bit buggy at the moment.

  • How to Open and Use the Google Chrome Task Manager Image
    How to Open and Use the Google Chrome Task Manager

    The Google Chrome browser has a built-in Task Manager that allows you to see how much memory and CPU web pages, extensions, and Google processes are using while Chrome is running. This feature is very useful if you find that Chrome has become slow, is using too much memory, or freezes a lot as you can see those extensions or pages are causing a problem.

  • How to see hidden files in Windows Image
    How to see hidden files in Windows

    By default Windows hides certain files from being seen with Windows Explorer or My Computer. This is done to protect these files, which are usually system files, from accidentally being modified or deleted by the user. Unfortunately viruses, spyware, and hijackers often hide there files in this way making it hard to find them and then delete them.

  • How to determine why Google Chrome is using a lot of memory or CPU Image
    How to determine why Google Chrome is using a lot of memory or CPU

    Unfortunately, it has become very common to find malicious Chrome extensions, poorly designed extensions, or extension monetization that causes Google Chrome to use up too much CPU or memory on a computer. This can cause the Chrome and the Windows to become slow, freeze, or crash. 

  • How to show hidden files in Windows 7 Image
    How to show hidden files in Windows 7

    Windows 7 hides certain files so that they are not able to be seen when you exploring the files on your computer. The files it hides are typically Windows 7 System files that if tampered with could cause problems with the proper operation of the computer. It is possible, though, for a user or piece of software to set make a file hidden by enabling the hidden attribute in a particular file or ...

 

Comments:

blog comments powered by Disqus

Login

Remember Me
Sign in anonymously