Wednesday, 3 September 2025

VsCode - auto path completion/autocompletion

The Problem: 

For a while it haunted me that my custom repos/packages weren't auto-completing, not ctrl+mouse hover to see what a function did.

 The Fix:

F1 > Preferences: Open Workspace Settings (JSON)

 

Ensure you have "settings", if not, add it.

Ensure you have "python.analysis.extraPaths" : ["your paths here"], if not, add it. 

    "settings": {
        "git.ignoreLimitWarning": true,
        "python.analysis.extraPaths": [
            "C:\\Users\\a_tav\\3D work and portfolio\\AT_autorig",
            "C:\\Users\\a_tav\\3D work and portfolio\\scripts",
            "C:\\Users\\a_tav\\3D work and portfolio"
        ],
        "python.analysis.autoImportCompletions": true,
        "python.analysis.completeFunctionParens": true,
        "python.analysis.useLibraryCodeForTypes": true,
        "editor.definitionLinkOpensInPeek": true,
        "files.associations": {
            "random": "cpp"
        },