Sublime Forum

Sublime Text 4 autocomplete leads to bugs

#1

For example, when defining a function, if I type “pass”, ST4 recommends “password”.

Moreover, if I type “pass” and press return, it autocompletes the text with “password’”

Note: “password” is not even in the file, I have no idea what ST4 is doing, but stuff like this leads to lots of silly bugs.

How do I revert the behavior, that is, how do I limit the auto-completion to text that is only in the file being edited.

Thank you

1 Like

#2

Completely matching completion candidates ( pass = python keyword) are removed from completion panel as it is most likely just to continue writing without the need for autoing them. This was implemented due to some interference with snippets, afaik.

It is indeed a bit unlucky that hitting enter to add a new line also commits the next best matching but probably unwanted candidate. I work around it by prefering auto_complete_commit_on_tab: true.

You may try "auto_complete_use_index": false to limit completions, but index should be used to fill in kind information only.

I guess password is picked from another open file.

0 Likes

#3

thanks! I’ll update my configs

0 Likes