Customizable snipping is a feature editors support (which I mentioned as they are related/similar to what the AI is doing), but is different to the AI autocomplete behaviour.
If I have a JSON structure, I can paste that into the file as a comment, e.g.:
# {"foo": 1, "bar": "test", "baz"}
@dataclass
class FooBar:
foo:
and the AI will/can autocomplete/generate that to:
@dataclass
class FooBar:
foo: int
bar: str
baz: int
If I have a JSON structure, I can paste that into the file as a comment, e.g.:
and the AI will/can autocomplete/generate that to: using the JSON example. Then if you type: the AI could then contextually generate, e.g.: Or if you have a SQLAlchemy model: typing `bar:` the AI can autocomplete: picking up that you have a `Bar` class in the file. Especially if you have other similar id/object definitions in the file.