Sublime Forum

Question about Auto-Complete

#1

Hi, sublime is really a powerful tool and I used it for quite a long time.

I have 2 question about auto complete here :

  1. I hope the auto complete don’t use the word from comments. How can I set this?
    e.g. I using “Solve” as an variable name, and I also use “solves” or “solve” in my comment.
    when I write the main program, I just want to autocomplete with “Solve”.
  2. How to enable auto-complete in comment?
    If there’s a quick way to turn on/off auto-complete that would be good.

Hoping someone could help me, thx a lot.

0 Likes

#2

You can change in which scope you want the auto-completion popup to show up by editing a setting: auto_complete_selector. Here’s the default value:

meta.tag - punctuation.definition.tag.begin, source - comment - string.quoted.double.block - string.quoted.single.block - string.unquoted.heredoc

As you can see, comment is excluded (- comment). So you can just remove this part from it. I personally set it to an empty string "", so that the popup shows up everywhere.

ctrl+space should be good.

I don’t know how to get your first problem resolved though…

0 Likes