How to fix crashes when you start Notepad++

  • September 8, 2017
  • Read 62,459 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:

  • Replace the Windows Notepad with a Better Notepad Image
    Replace the Windows Notepad with a Better Notepad

    Damn you Microsoft! I am a notepad addict. If you look at my taskbar at any time and you will see at least 5 notepads, usually a lot more running at one time. Why? Because it is fast and small I use it to keep notes, to do lists, phone numbers, write code, search and replace, etc. The reasons are endless....

  • 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 Install Hyper-V in Windows 10 Image
    How to Install Hyper-V in Windows 10

    Hyper-V is a virtual machine software solution that is included with Windows 10 Professional, Windows 10 Enterprise, and Windows Server that allows you to run multiple operating systems at once from within one instance of Windows. This tutorial will explain how to install Hyper-V in a supported version of Windows.

  • 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 burn or write a CD/DVD image or ISO Image
    How to burn or write a CD/DVD image or ISO

    A CD/DVD image is a file that contains all the information necessary to make an exact duplicate, or clone, of a CD or DVD. Images are created by software that writes every bit of information contained on a CD or DVD into a file on your computer. This file can then be made available for download so that other people can make an exact duplicate or your original CD or DVD on their own computer.

 

Comments:

blog comments powered by Disqus
search tutorials

Login