Disabling autocomplete in comment blocks in Sublime Text

2

1

I have autocomplete activated with "auto_complete_selector": "source", however when I'm writing long-form comment blocks the autocomplete suggestions are distracting (i.e. typing current attempts to autocomplete to current).

Can autocomplete be configured to only activate outside of a comment scope?

Ross

Posted 2013-08-21T11:12:54.353

Reputation: 2 848

Answers

1

Just set the following in your preferences:

"auto_complete_selector": "source -comment"

and you should be all set.

MattDMo

Posted 2013-08-21T11:12:54.353

Reputation: 4 968

1This doesn't seem to work inside comment blocks only usual comments ie // – Louis – 2014-03-31T23:37:52.263