How to show and hide line numbers in Notepad++

  • May 10, 2016
  • Read 39,829 times
 

Notepad++ is a very popular Notepad replacement and source code editor that is very powerful and has a ton of features. Unfortunately, these features do come with a price as some of its basic preferences are hidden in the settings for the program.

As I use Notepad++ a lot and take screenshots of code inside it, I sometimes disable the display of line numbers in the editor window.  Unfortunately, this means I usually forget how to enable them again. Due to this, I decided to write a quick little tutorial that can help others who wish to show, or hide, line numbers in Notepad++.

To show or hide line numbers in the editor screen of Notepad++, open the program so that you are at the main screen as shown below.

Notepad++ Window
Notepad++ Window

Now click on the Settings menu and select the Preferences... option.  You should now be at the General preferences screen as shown below.

General Settings Page
General Preferences Page

On the left of the preference screen are different categories of settings that you can select. Click on the Editing category once so that it becomes highlighted.  You should now be at the Editing preferences screen as shown below.

Editing Settings Page
Editing Preferences Page

To show line numbers in Notepad++, put a checkmark in the checkbox labeled Display line number, as indicated by the blue arrow.  If you wish to hide line numbers in Notepad++, remove the checkmark from this box instead. When ready, click on the Close button to save the changes. Depending on whether you checked or unchecked that box, Notepad++ will now display line numbers.

As an example, I have put a checkmark in the Display Line number box, and as you can see below, Notepad++ now displays a number for each line of text.

Notepad++ Showing Line Numbers
Notepad++ Showing Line Numbers

Users who read this also read:

  • How to recover files and folders using Shadow Volume Copies Image
    How to recover files and folders using Shadow Volume Copies

    This tutorial will walk you through recovering deleted, modified, or encrypted files using Shadow Volume Copies. This guide will outline using Windows Previous Versions and the program Shadow Explorer to restore files and folders as necessary.

  • Using SpywareBlaster to protect your computer from Spyware, Hijackers, and Malware Image
    Using SpywareBlaster to protect your computer from Spyware, Hijackers, and Malware

    Many Spyware, Hijackers, and Dialers are installed in Internet Explorer through a Microsoft program called ActiveX. These activex programs are downloaded when you go to certain web sites and then they are run on your computer. These programs can do a variety of things such as provide legitimate services likes games or file viewers, but they can also be used to install Hijackers and Spyware on to ...

  • 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 find the License Agreement for the Installed version of Windows Image
    How to find the License Agreement for the Installed version of Windows

    When you install Windows, you are shown the Windows license agreement that provides all the legal language about what you can and cannot do with Windows and the responsibilities of Microsoft. Finding this license agreement, afterwards, is not as easy.  This tutorial will explain how to find the license agreement for the edition of Windows installed on your computer.

  • How to close a program using Task Manager Image
    How to close a program using Task Manager

    When using Windows there will ultimately come a time when you need to close a program that is frozen, is malware, or is simply not behaving properly. Unfortunately, sometimes just clicking on the Windows close button does not close a program properly. This guide will teach you how to use the Windows Task Manager to close a program in Windows 10, Windows 8, and Windows 7.

 

Comments:

blog comments powered by Disqus

Login

Remember Me
Sign in anonymously