Sublime Forum

.sublime-completions

#1

Hello!
I want to add custom auto-completion functions to sublimetext, but there isnt any decent documentation about it. So far I have managed it to work on php, html, javascript and python files, but I need the custom completion fields to also work on .pwn file extensions, which I cant manage to do. It just doesnt work.
So my question is - How do I get custom auto completion fields to work on files with .pwn extension?

Kaspars

0 Likes

#2

What do I have to type in the scope so the completions would apply to a specific file type? I have tried dozens of combinations and none of them work.
"scope": "???"

0 Likes

#3

10 months have passed. I still havent resolved this.

0 Likes

#4

I could be wrong, but I think completions have to apply to a language, and a language applies to a file type. So either you could set up ST to open all pwn files as another language, and have your completions target that language, or you have to make your own tmLanguage.

0 Likes

#5

Thank you. Got it working.

0 Likes

#6

Cool! Glad it’s working :smile:

0 Likes