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.