Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Implementing and improving Python-Intellisense in vscode

I am transitioning from using PyCharm to VS Code and noticed that autocomplete in VS Code is not seemingly as useful as it is in PyCharm.

  • In PyCharm, once a function is defined within your project, PyCharm's autocomplete will display all the arguments that function takes. Is that possible in VS Code?
  • In PyCharm, even unknown/unimportable modules (such as those defined in an API) will appear as potential completions if that completion has been used somewhere else in the project. Are there "project" level settings in VS Code to enable this? Is this learning behavior possible through intellisense?
like image 829
noisy123 Avatar asked Sep 08 '26 19:09

noisy123


1 Answers

1) Intellisense displaying all the arguments of a function: Yes. This is how it shows me All the parameters appear like this

2) Intellisense showing potential completion of modules: Yup. I hope this is what you mean. enter image description here

3) If you are referring to settings that only work in your current project, Yes. You need to save your workspace first (go to File>Save Workspace As ..., and then head over to the workspace settings by using Ctrl+Shift+P and search for Workspace settings.

I hope I understood your queries correctly.

It seems that you are yet to set up your python intellisense. Try going according to the tutorial here. https://code.visualstudio.com/docs/languages/python

like image 182
AzuxirenLeadGuy Avatar answered Sep 11 '26 12:09

AzuxirenLeadGuy