Notepad++ select all above or below lines

Notepad++ Select above or below lines
Notepad++ Select above or below lines

I usually use Notepad++ to work with large files and it is really useful as its undoubtedly the most powerful text editing tool on Windows OS.

If you have a huge file and you just want to select all the line above or below a specific line then you can do so by following the below steps,

Notepad++ select all above:

  1. Open the file in Notepad++,
  2. Go to the line number from where you want to select all lines above, keep the cursor at the start of the line (press home if the line is too big to get to the start),
  3. Now press Shift, and while holding press End, you should see the first line being selected,
  4. Now keep holding Shift and press Page Up button.

Notepad++ select all below:

  1. Go to the line from where you want to select all the lines below, you can try using Ctrl+G and adding the line number if you know it,
  2. Press Home to get to the start of the line,
  3. Now press Shift + End,
  4. Keep holding Shift and press Page Down to select all lines below.

⛏️ Note: If you do not want to include the current line you are on simply press the Shift + Page Up or Page Down keys. Make sure the cursor is at the start of the line.

Try Out Code2care Dev Tools:


Android Java Linux Microsoft Google Python macOS Notepad++ Microsoft Teams CSS PHP SharePoint Html Linux C Programs Bootstrap jQuery Sublime Android Studio Facebook Eclipse WhatsApp News MySQL Json HowTos JavaScript FTP S3


Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and Software Developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include Learnings, Tutorials, Trouble-Shooting steps, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.
🎉 We are celebrating the 10th years of Code2care! Thank you for all your support! We hope we made a difference.
We strong support Gender Equality & Diversity.

We stand in solidarity with Ukraine - Make a donation to UNHCR -