Sublime Forum

New to this.....having trouble adding same text to every line

#1

I have a Mac…I am trying to add the same text to the end of all 9,000+lines. I’ve selected all and hit selection and split them into lines, typed what I needed at the end of the first line (but it seems as soon as I do that it takes it out of separate lines mode), and I’m not sure where to go from there…HELP!

0 Likes

#2

When you split into lines, the selected text stays selected, so once you start typing it’s gone. You can use ctrlE to deselect the selection and go to the end of the line (for every line):

cmdA to select everything
cmdshiftL to split into lines
ctrlE to go to the end of every line

type your text

esc to exit multi-line editing

1 Like

#3

Oh my word. Can’t thank you enough!!!

0 Likes