How to add space before each line in notepad

I have a list of data in notepad and you want to insert a space at the beginning of each line.

Example

Here's what it looks like in a notebook now

Number

"123"

"123"

"124"

"126"

"147"

I want it to look below

    Number

    "123"

    "123"

    "124"

    "126"

    "147"

I am sure there is a short cut. Please advise.

+4
source share
2 answers

Open the file in Notepad ++

Press Ctrl + H to open the Replace window.

Change "Search Mode" to regular expression.

In the "Find what" field, enter (\n|^)

In the field "Replace with" enter \1(at the end there is a space)

Then click Replace All

+7
source

WordPad ( Notepad ++, @Felix Castor).

, :

Find '"'

Replace ' "'

.

-1

Source: https://habr.com/ru/post/1569348/


All Articles