Skip to content

Instantly share code, notes, and snippets.

@dvu4
Last active April 8, 2025 23:56
Show Gist options
  • Save dvu4/69d7c144f46c26e6e7f99a0817173b7c to your computer and use it in GitHub Desktop.
Save dvu4/69d7c144f46c26e6e7f99a0817173b7c to your computer and use it in GitHub Desktop.
Insert text every beginning or ending of all lines in sublime

Insert text every beginning or ending of all lines in sublime

Context :

I have 1000 line following like structure texts.

f54g
f5g546
2122v
kjfkjlf
ttt54
ncjkhd8
DFSD5

And I want to insert “”, for each line.

How can we insert this text for 1000 lines?

"f54g",
"f5g546",
"2122v",
"kjfkjlf",
"ttt54",
"ncjkhd8",
"DFSD5",

Here is the solution

  • 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 "
  • Moves cursors to the line ending.
  • Type ",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment