Code2care : TechZone Apps & Tutorials

How to remove blank lines in a file using Notepad++

We can remove blank lines in a document in various ways using Text Editor like Notepad++ , using Line Operations, TextFX or Regular Expressions.

1. Using Edit -> Line Operations

    Open your file in the Editor and got to Menu : Edit -> Line Operations -> Remove Empty Lines

2. Using Regular Expression

    We can use the Find and Replace option with regular express to remove empty lines

    1. Press Ctrl + F to open Find dialog, move to Replace tab
    2. Change the Search Mode as Extended (\n,\r,\t,\0,\x ...)
    3. Now,

    Find : \r\n

    Replace with blank

3. Using TextFX Tools

    1. Select the text content.
    2. Goto Menu : TextFX -> TextFX Edit -> Delete Blank Lines


Posts related to notepadplusplus.

1. How to Do Column Mode Editing in Notepad++

2. Setting up Cloud feature with Notepad++

3. Base64 Encoding Decoding In Notepad++

4. Add blank lines after each lines using Notepad++ text editor

5. 97 Useful Notepad++ Keyboard Shortcuts List

6. Compare Files with Notepad++ Plugin

7. Convert SQL to CSV in Notepad++

8. 15 Notepad++ Editor alternatives for Mac OS X

9. Disable Control Scroll Zoom-in and Zoom-out in Notepad++

10. How to Convert CSV file to SQL Script using Notepad++

11. Using Document Map in Notepad++

12. Add Blank Lines Notepad++

13. How to remove blank lines from a file using Notepad++

14. Add Text at Start and End of Each Line Notepad++

15. Indent XML Formatting In Notepad++

16. Replace tabs by spaces or comma Notepad++

17. ASCII to HEX and HEX to ASCII Conversion Notepad++

18. Error opening file for writing Notepad++ Setup

19. Launch Notepad++ html document in any web browser

20. How to do Multi-Line Editing in Notepad++


Popular tags
x 175
x 29
x 20
x 14
x 14
x 14
x 13
x 11

1000+ C Programs     PHP Tutorial     JSON Tutorial     Swift Tutorial     India Pinocdes     About Us     Privacy Policy

Code2care © 2012-17