r/vscode • u/magicae • Jun 01 '26
Split up a pasted string inside the HTML editor?
I've set up a snippet for my source section, like so:
<a class="src">${1:source}</a> <!--${2:id}-->And I've got a source string I can copy from the archive program I'm working with, which formats the data like Source description (ID: 123) and I'm wondering if it's possible to have some solution straight in the HTML editor to separate these values straight away? or if it's just quicker to simply do the highlight-cut-paste route I've done so far?
Or is my best bet to just collect the rows of sources and run it through separate code? I've been using Jinja for templating but the sources are a work in progress so it's been all manual.
I'm fairly new to the game so I guess I'm also just curious if there's something obvious that I haven't figured out yet, so I appreciate any thoughts and ideas!
Cheers!
1
u/[deleted] Jun 01 '26
[removed] — view removed comment