How to hide lines in Notepad++

If you are looking at a file in Notepad++ and want to hide certain lines in the file, you can make use of Hide Lines option,

Example: Hide Lines in Notepad++

  1. Select the lines that you want to hide on a tab,
  2. Now either press Alt + H or go to Menu: View and select Hide Lines
  3. Will will see that the lines you selected are now hidden.


Line 1
Line 2
Line 3
Line 4
Line 5


Line 1
Line 5
Hide Lines in Notepad++
Hide Lines in Notepad++

To unhide or view the hidden lines again, just expand the section by clicking on the green triangles in the gutter section.


Facing issues? Have Questions? Post them here! I am happy to answer!

Author: Rakesh
Author Info:

Rakesh is a seasoned developer with over 10 years of experience in web and app development, and a deep knowledge of operating systems. Author of insightful How-To articles for Code2care.

Follow him on: X

Copyright © Code2care 2023 | Privacy Policy | About Us | Contact Us | Sitemap