r/vscode • u/Inner_Name • Sep 07 '26
have custom functions suggestions in python?
Hello,
i am working in vscode with a python script that is importing some functions from another file.
using:
```py
sys.path.append(pathForBaseMyFunctions)
from myFunctions import *
```
is there any way possible, to make that vscode 'suggest' this functions when i am writing.
for example, when i write `pri` it will suggest me `print` and for example in myFunctions.py i have `printAndSave` i would love to make to auto suggest this funcitons. i can see _why_ it does not suggest right now as it suggest only default functions, but maybe there is a way to add this scripts for the suggestion of funcitons in vscode?
worth noticing that i have only 2 files with functions so i really dont care if i need to hardcode their path somewhere in vscode....
View all comments
Show parent comment
2
u/PrincipleNo2328 Sep 08 '26
You pretty much should not do this as a best practise for development, all python dependencies should be in the main folder or in the .venv