1
1
1YURA12017-03-17 13:07:17
Regular Expressions
1YURA1, 2017-03-17 13:07:17

How to write macro or snippet in Sublime Text 3?

Good time. How to correctly implement such functionality For example, there is some text, how to put a number at the beginning of each line starting from 10, etc. (there are more than a thousand lines in the text)
it was:
some text
some text
some text
some text
should become:
10 some text
11some text
12some text
13some text

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
display: block, 2017-03-17
@1YURA1

Emmet has a trick.
Wrap Abbrevation (CTRL+Shift+G, may vary by system):
Only one blank line is put at the beginning, but I think this is not a problem.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question