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.

Before:

Line 1
Line 2
Line 3
Line 4
Line 5

After:

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 Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail: rakesh@code2care.org



















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