When I type out something like np.
I think this triggers Visual Studio Code + Pylance’s (not sure) auto-import completion by suggesting that import numpy as np
might be relevant.
I would like to create similar custom auto-import/complete associations. For example: between pl
and polars
, so that if I type something like pl.
then import polars as pl
is given as an auto-import suggestion.
How can I do this? Is this specific to the Pylance extension I am using, or something about Visual Studio Code?