Just looking for a way to insert blank lines in every 2 lines in Notepad++, but I cant find the settings for this. Please tell me how to configure this?
5 Answers
There is no setting for this thing in notepad++. However the shortcut for:
Insert blank line above the current line is: Ctrl+Alt+Enter
Insert blank line below the current line is: Ctrl+Alt+Shift+Enter
Pressing Enter
can also insert a new blank line in the case of text files, but in case of script file like python script file pressing Enter generally inserts a new line but with the identations like tabs or spaces, depending upon how you ident your code.

- 5,115
- 8
- 43
- 73
-
3Although this question is written poorly, and possibly deserving it's low vote, it was the first one to pop up in Google, and this is the answer I was looking for. – BillyNair Oct 13 '15 at 18:22
Go to Find and Replace-> press Ctrl+F
Search mode type : \n
Find what : \n
Replace with : \n\n\n
Select mode : Extended

- 1,040
- 1
- 17
- 30

- 41
- 1
- Put the cursor on first row.
- Select command "Start Recording". (Macro->Start Recording)
- Press Down arrow button two times and End button one time.
- Select command "Stop Recording". (Macro->Stop Recording)
- Select command "Run a Macro multiple times...". (Macro->Run a Macro multiple times...)
- Select "Run until the end of file" radio button and click "Run" button.
- Done!

- 21
- 1
put the curser at the first line left most side.(or from where you want to insert new lines)
- Press ctrl+H
- Select Regular expression
- give
\r
in find what - give
\n
in replace with - click replace all
thats all :-)

- 5,093
- 12
- 35
- 44

- 11
- 1
I haven't discovered a way that you can insert a blank line specifically after every 2 lines, but you could try doing the reverse of this solution: https://stackoverflow.com/a/6974407/3733680 where the user was looking for a way to remove blank lines.
Alternatively, if you want to change the line-height of your document, increasing the font-size of Brace highlight style
in the Style Configurator
will create more space between each line of code. The Style Configurator
is under Settings
and you need to be in the Global Styles
list.

- 1
- 1

- 448
- 10
- 23