Sublime Forum

Any way to turn off auto completion in the comments?

#1

I have tried changing “auto_complete_selector”: “source - comment” to “auto_complete_selector”: “source” to no avail.

I am slightly annoyed with the auto completer trying to write lengthy comments that sometimes, some words are auto completed.

This is of course a very minor annoyance, but I wanted to know if it was possible to to achieve what I described.

0 Likes

#2

Why am I having the opposite problem of yours?
I can’t turn ON auto completion in the comments, the setting is:

// Controls what scopes auto complete will be triggered in
“auto_complete_selector”: “source - comment”,

Anyone knows how to turn it on? T_T

0 Likes

#3

Considerung how selectors work

"auto_complete_selector": "source",

should enable it for all source (not text or html) and

"auto_complete_selector": "source - comment",

should enable it for all source (not text or html) but not within comments.

0 Likes

#4

[quote=“FichteFoll”]Considerung how selectors work

"auto_complete_selector": "source",

should enable it for all source (not text or html) and

"auto_complete_selector": "source - comment",

should enable it for all source (not text or html) but not within comments.[/quote]

Thanks :smiley:

0 Likes

#5

I’ve got

"auto_complete_selector": "source - (comment, string.quoted)"

to disable auto-complete inside string literals as well.

Think I picked that up from here.

0 Likes