Sublime Forum

Get autocompletion in e.g. normal .txt files?

#1

Hi,

If I edit e.g. a .txt file under Windows I don’t get any autocompletion for words in the text.
What must be done to get this feature in no-source-code files?

0 Likes

#2

Preferences -> Settings - User

"auto_complete_selector": "source - comment, meta.tag - punctuation.definition.tag.begin, text.plain",
0 Likes

#3

Thank you tito!

0 Likes

#4

I’ve got the opposite problem - Sublime Text (v2) is doing autocomplete in (*.txt) text files and I don’t want it to. I’ve tried setting both of these settings:

"auto_complete_selector": "source - comment"
"auto_complete": false

But it still autocompletes. I did notice that if I go Preferences->Settings (More)->Syntax Specific (User), it thinks the *.txt files are *.diff files, which seems strange. It identifies other file types like .cpp and .js correctly.

0 Likes