Notepad++ Mark and Copy feature


Notepad++ has a new feature where-in you can Mark text based on your search query or regular expression, doing so you can highlight all the matches in the file and even copy and paste it somewhere else,

Notepad++ Mark and Copy Feature
Notepad++ Mark and Copy Feature

Example Usecase:

If you want to filter all the lines that start with a word or contain a word use it somewhere else.

  • Open file or tab in Notepad++,
  • Now either Press Control + M or go to Search -> Mark to open Mark Window,
  • Find What: ^P.* (example all words that starts with P)
  • Click on Mark All,
  • Click on Copy Marked Text, to copy to clipbaord,
  • Click Clear Marked Text to remove all markings

✌️It gets more interesting if you try that without clearing the marked text, you can highlight more texts again with different searches until you reach what you want and then copy them.

Similarly you can even bookmark lines based on a search by selecting the "Bookmark Lines" checkbox.

Advertisements
Try Out Code2care Dev Tools:

Advertisements

Advertisements
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-to, blogs, articles, etc.

πŸŽ‰ We are celebrating the 10th years of Code2care! Thank you for all your support!

We strongly support Gender Equality & Diversity.