Sublime Forum

How to duplicate selected text or lines muliple times?

#1

When i select some text or lines, I want to duplicate them n times. I am not satisfied with the ctrl+shift+d. Cause i need to know exactly when n arrives. I’m asking for a better way to do this. How about : select the text, open a command pannel, then input the exactly value of n. Any good ideas? thanks.

0 Likes

#2

If you are willing to learn vim key strokes, it’s pretty easy.

For example, with vim key strokes, you can press yy to copy the current line, and Xp to paste the line below the current line for exactly X times.

1 Like

#3

[quote=“prmaple”]If you are willing to learn vim key strokes, it’s pretty easy.

For example, with vim key strokes, you can press yy to copy the current line, and Xp to paste the line below the current line for exactly X times.[/quote]

Haha. Thanks a lot I’ve done this with vintage mode in sublime.

0 Likes