how do I tell visual studio code to show intellisense for built in python functions like range()

Viewed 289

I am entering a line in Visual Studio Code that contains the range function. I was expecting to see it show me the arguments for the range function. Instead, I see in a dropdown, where I can click range in the dropdown list. And after that it fills in start, stop, range for the arguments for the function. This means I have to change these values. I was hoping the IDE would show me what the valid arguments are. Am i missing something ?

2 Answers

I use the VS Code Extension IntelliSense (Pylance) whose owner is Microsoft. This is the best extension for auto completion and functions/modules description
Extension

If you have this extension and still facing the same issue then try reinstalling.
Don't use the web version of VS Code.
Restart once after installation is finished.
Also make sure to have Python installed on your system.

While writing the range() function enter image description here

While hovering over the range() function
enter image description here

I personally use an autocomplete engine known as TabNine. I used to use Kite, and the built in intellisense provided with the VSCode IDE, however, TabNine has proved very reliable to me, and has built-in support for many modules. You can download it in the extensions section of VSCode, by looking up TabNine.
This is the official TabNine website.

Related