Sublime Forum

Insert text every beginning of line

#1

I have 1000 line following like structure texts.

f54g
f5g546
2122v
kjfkjlf
ttt54
ncjkhd8
DFSD5

But i want beginning insert text “Token”.How do insert this text for 1000 lines?

Token f54g
Token f5g546
Token 2122v
Token kjfkjlf
Token ttt54
Token ncjkhd8
Token DFSD5

0 Likes

#2
  • Ctrl+A selects the whole file content.
  • Ctrl+Shift+L let you get cursors on lines of selected regions.
  • Home moves cursors to the line beginning.
  • Type Token_.

Another way:

  • Ctrl+H with regex mode enabled and replace ^ with Token_.
3 Likes

#3

Hey Jack,

I’m not the original poster, but this helps a lot with another little mass edit I had to do. Perfect! Appreciate the RegEx method too! Still learning. Thanks for taking the time & effort to reply!

Cheers man,
–Kudzu

1 Like