How do I disable snippets in Sublime Text 3?

前端 未结 2 537
旧时难觅i
旧时难觅i 2020-12-13 06:07

How do I completely disable the Sublime Text 3 snippets feature without disabling autocompletion? Having the editor \"help\" me with crappy pre-typed code blocks just slows

2条回答
  •  眼角桃花
    2020-12-13 06:58

    I was trying to use Peh's answer above, but found that for Go, the snippets are encoded in XML-based .tmSnippet files. Deleting some or all of the XML resulted in annoying popups every time Sublime was launched. As a workaround, I replaced the tabTrigger definition with uncommon characters.

    Before tabTrigger for

    After tabTrigger ø

    This prevents the snippet from being shown in the autocomplete menu, unless you are actually using the uncommon character in question.

提交回复
热议问题