How to fix crashes when you start Notepad++

  • September 8, 2017
  • Read 1,567 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 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 ...

  • How to turn on Night Mode in Twitter Image
    How to turn on Night Mode in Twitter

    Twitter offers a Night Mode that causes the site to display darker colors in both the Twitter Mobile app and on Twitter Desktop, which is when you use  a desktop browser such as Chrome, Firefox, or Android to access Twitter. These darker colors produce less light and thus do not bother other people in the room, are easier on the eyes when viewing Twitter in the dark, and arguably look ...

  • How to Restore a Missing Windows Desktop Image
    How to Restore a Missing Windows Desktop

    When using Windows, under certain circumstances the Windows Desktop will not be shown. When this happens, when you login to Windows instead of seeing the desktop, start menu, or your normal icons, you are shown a blank screen instead. This tutorial will provide steps on how to restore a missing Windows desktop.

  • 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.

 

Comments:

blog comments powered by Disqus

Login

Remember Me
Sign in anonymously