Sublime Forum

How to modify or remove snippet?

#1

I have a problem when editing LaTeX. I want to write the following, so I type “beginTheorem”.\begin{Theorem} <move caret here> \end{Theorem}However, the emphasize snippet kicks in, and writes out[code]\begin{Theor\emph{} }

\end{Theor\emph{} }[/code]This is obviously not what I want. Ideally, the emphasize snippet shouldn’t react there. But how could it know that? The easiest way for me to fix this is to delete Emphasize.sublime-snippet, or to edit it and change the binding from “em” to, say, “emph”. Sublime replaces this file upon startup though, so deleting it does not work, and editing it and making it readonly causes Sublime to crash upon startup.

How do I fix this? :smile:

0 Likes

#2

This thread is about a similar problem maybe it helps: Snippets problem

0 Likes

#3

I didn’t find a solution in that thread. I would rather just remove the snippet than change the functionality. How can I do that?

Edit: Hehe, here’s my hacky solution. I made my own User snippet, which as soon as it runs deletes the emph snippet. :smile:

0 Likes