How to auto complete custom snippets in plain text mode?

Henry Huang 7 years ago updated by Nicolas 6 years ago 1

I tried setting

"auto_complete_selector": "text, source - comment"

in the user profile, but once that's enabled, I can see the snippet everywhere, even when I am using other syntax specific file. I just want to limit the snippet to be auto completed in plain text mode, how do I do that?

Create a .sublime-snippet file in Packages/User/ with the following content:

    <content>Laughing out Loud</content>
    <description>Saying LOL</description>
If you need it for other scopes e.g. Markdown you can find out the current scope name by opening the console and typ view.scope_name(0)