Settings (pro memoria)

Useful editor settings to get right.

  • "python.condaPath": "/path/to/miniconda3/condabin/conda" e.g. in my case "${HAFH}/miniconda3/condabin/conda"
    • this setting ensures that your Conda environments will be discoverable when you want to switch (was often buggy for me; this fixed it)
  • Gitlens:
    • "gitlens.hovers.currentLine.over": "annotation" (I think it was this one) - removes the super annoying gitlens info that appears above the function/class docstring when hovering over the function/class name but keeps the gitlens info available by hovering over the gitlens annotation (grey shadow text showing mainly blame) on any given line
  • "python.pyrefly.disableLanguageServices": true

NOTE

Ensure all of these are set in the environment you are working in, e.g. if you’re SSHing into a server, set this in the remote server’s respective settings (“tabs” displayed on the VSCode settings UI page).