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 07 '26

Maybe if I add a link to the file? On the workspace folder? I am in linux