sublimehq/sublime_text

Add pre/post pending

Closed this issue · 1 comments

Problem description

Notepad2 has this feature, super useful.

Preferred solution

this works great:
image

Alternatives

manually step line by line and modify..

Additional Information

No response

You can do this trivially using multi-select:

  • Select All (ctrl+a)
  • Split Selection Into Lines (ctrl+shift+l)
  • Home or End

Then you can type your prefix/postfix.

For numbers you can use the arithmetic command from the command palette (Tools > Command Palette). See https://www.youtube.com/watch?v=taLCxwgcrVk