Sublime Forum

Trouble with autocomplete

#1

Hi I am having trouble with autocomplete.

In python when I set a debugger in the code I write:

import pdb
pdb.set_trace()

However, when writing

import pdb

, it gets autocompleted to

import parallel_dict_from_basic

whenever I press enter to write the next line. Is there a way to stop autocomplete from working in this one instance?

0 Likes

#2

Your best chance is probably "auto_complete_commit_on_tab": true, to not use enter key to commit completions.

Exact matches (e.g. pdb) are removed from completions and thus the next best match is used.

0 Likes

#3

Packages can automatically cancel completions if lines match (or end with) certain patterns.

It’s barely possible for common statements such as OP’s example.

It is however recommended to cancel completions on certain keywords.

0 Likes