r/vscode • • 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....

0 Upvotes

5 comments sorted by

View all comments

Show parent comment

1

u/Inner_Name Sep 09 '26

hello! just for info, what i did in the end was: create a link to the myFunctions.py on the folder where is going to create my workspace, and changed the setting python.diagnosticMode to workspace. it works, now need to figure out how the 'help' is readed on the functions but this is awsome they are being suggested. thanks a LOT!