Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Autocomplete in VSCode

oyvindTMNSU
Advocate

Autocomplete in VSCode

oyvindTMNSU
Advocate
Advocate

Hi.

I don't get any auto complete in VSCode while writing Add-ins. Any any what to do? I have tested what have been said in an earlier post but that did not work.... The path inside the .jason file is correct

 

 

 

 

1 Like
Reply
900 Views
5 Replies
Replies (5)

Jorge_Jaramillo
Collaborator
Collaborator

Hi @oyvindTMNSU ,

 

This is the setting I have in my windows environment projects for Python, under .vscode / settings.json file:

 

{
	"python.autoComplete.extraPaths":	["C:/Users/<USERNAME>/AppData/Roaming/Autodesk/Autodesk Fusion 360/API/Python/defs"],
	"python.analysis.extraPaths":	["C:/Users/<USERNAME>/AppData/Roaming/Autodesk/Autodesk Fusion 360/API/Python/defs"]
}

 

Replace <USERNAME> by your current user id.

 

Which setting do you have? On which file? Be explicit please.

 

Hope this help.

 

Regards,
Jorge

 

1 Like

oyvindTMNSU
Advocate
Advocate

hi. I have the same path but for MacOS. The path lead to the defs folder just like you 

0 Likes

Jorge_Jaramillo
Collaborator
Collaborator

Hi,

Is it failing just with Fusion's API modules or with any Python module?

 

If it is the first one, try to copy the fusion libraries to some other directory and change the setting to follow that new location, and check if it work with the new location.

If it is the second one, I'd suggest to google it, look for some solution in stackoverflow (for example this topic) or check the IntelliSense settings on this url.

 

Hope this could help to get to your problem.

 

Regards,

Jorge

 

0 Likes

BrianEkins
Mentor
Mentor

Try deleting your .vscode folder in your script or add-in folder and let Fusion rebuild and see if that fixes anything. Next, you can also delete the .vscode folder in your home directory.  Autocomplete has been working great for me for quite a while now.

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
0 Likes

oyvindTMNSU
Advocate
Advocate

Does it work with the newest version of python in VScode as well? 

Seems to work with a old version but not the newest....

 

1 Like