![](https://cdn.userecho.com/characters/75.png?1)
0
Declined
Add prefix/suffix to selection
Allow adding prefix/suffix to all lines in selection (similar to TextWrangler)
Answer
![](https://cdn.userecho.com/characters/74.png?1)
0
Answer
Declined
Jon Skinner 13 years ago
Thanks for providing the detailed followup information.
Sublime Text provides a natural way to edit multiple lines simultaneously: select the lines of interest, then use the "Selection/Split Selection into Lines" menu item to get one selection per line.
Once you have per-line selections, you can easily make batch edits modifying each line, without requiring a separate dialog.
![](https://cdn.userecho.com/characters/74.png?1)
Please provide more details for suggestions, this doesn't give much to go off
![](https://cdn.userecho.com/characters/78.png?1)
Can this not be achieved with multi-line typing? - you can add lines to the selection, then move the carets to the start or end of the lines and start typing/pasting.
![](https://cdn.userecho.com/characters/75.png?1)
Sorry for not stating my idea clearly.
Add and Remove Prefix or Suffix: These actions will prepend or append the supplied string to each line processed (or remove same).
This is how TextWrangler did it:
01. Select multi-line texts you want to add prefix/suffix, choose Prefix/Suffix Lines... from menu
![](/s/attachments/2013/1/1111/6b23f6ba31d57144003140a97f2ab4c0.png)
02. Enter prefix and/or suffix values you want in the dialog![](/s/attachments/2013/1/1111/68c3f5c3db2a07dc51ed508c14edfc7d.png)
![](/s/attachments/2013/1/1111/68c3f5c3db2a07dc51ed508c14edfc7d.png)
03. You have prefix/suffixed added to each lines![](/s/attachments/2013/1/1111/d1d05aa7ce91f2096c8c1e6ad72c6c1f.png)
![](/s/attachments/2013/1/1111/d1d05aa7ce91f2096c8c1e6ad72c6c1f.png)
04. Now you want to remove suffix. Choose Prefix/Suffix Lines... from menu, then enter suffix value to be removed
![](/s/attachments/2013/1/1111/398174ec130feeba62693ed0c500ac42.png)
05. If lines have same entered suffix, it will be removed as below
![](/s/attachments/2013/1/1111/866dcd2ff2f610737aa60ae5b26e9411.png)
![](https://cdn.userecho.com/characters/74.png?1)
Answer
Declined
Thanks for providing the detailed followup information.
Sublime Text provides a natural way to edit multiple lines simultaneously: select the lines of interest, then use the "Selection/Split Selection into Lines" menu item to get one selection per line.
Once you have per-line selections, you can easily make batch edits modifying each line, without requiring a separate dialog.
![](https://cdn.userecho.com/characters/75.png?1)
I didn't know that. This implementation is much more convenient and powerful than TextWrangler's.
Thanks for your prompt support,
Customer support service by UserEcho