Skip to main content

All Questions

0 votes
4 answers
3k views

How do I convert this Sublime snippet into a VS Code snippet?

See below my attempt and result. The Sublime snippet first: <snippet> <content> <![CDATA[<${1:p}>${2:$SELECTION}</${1/([^ ]+).*/$1/}>]]> </content> ...
o_O's user avatar
  • 5,743
1 vote
2 answers
2k views

Sublime Text snippet convert camelCase to snake_case

Hi there I am trying to make an sublime text snippet and i would like to convert an camelCase word to snake_case. I do know there are plugins that allow you to convert string to snake_case but i want ...
Eth0's user avatar
  • 43
0 votes
1 answer
261 views

Translate accented to unaccented characters in Sublime Text snippet using regex

I'm writing a ST3 snippet that inserts a \subsection{} with a label. The label is created by converting the header text to conform with the LaTeX standards for labels using a (rather lengthy) regular ...
Fredrik P's user avatar
  • 694
1 vote
1 answer
162 views

XML snippet with substitution crashing sublime text 3

I'm trying to write a sublime xml snippet but I have two problems. First the completions aren't showing up for xml files so the only way I can activate the snippet is with cmd-shift-p. They work in ...
doovers's user avatar
  • 8,685