Sublime Forum

Autocomplete in python: limiting match to start of text

#1

Hello, I want to limit autocomplete for Python code so that it matches only the start of some text (variable, for e.g.).

For example, if this is existing code:
my_data = Climate_Data(source)

when I type “data”, I get autocomplete options for “my_data” and “Climate_Data”. I don’t want these to appear as autocomplete options but only if the variable or class or other begins with “d”, preferably matching case.

I didn’t see a way to limit this in Preferences.sublime-settings – is that available there or through some other configuration?

0 Likes