Reputation: 684
just trying to find correct tool for me to start with Python
when tried PyCharm -to learn about possible attributes for some object- used an option : "Go to declaration":
which brought me to declaration and i could see the available options :
when tried to do the same in VS Code:
I have two questions : 1) how to go to declaration to see the possible options in VS Code ? 2) Can You advise me some plugin - that can explore the definition and may be bring this Params in auto completion ?
** just to mention i have Python extension installed...:
Upvotes: 2
Views: 3086
Reputation: 518
Usually this means one of two things:
1 is easy to fix: Either make sure you selected the correct python binary in VS Code or (in case of custom libraries or ones which are outside Python's default library locations) add it to PYTHONPATH manually.
2 usually means there is nothing you can do as the VS Code Python extension currently does not analyze any C extensions.
Upvotes: 0
Reputation: 53407
To 1) Yes, obviously there is "Go to definition" functionality. Otherwise the menu entry wouldn't make any sense, would it?
If no definition was found that means vscode does not have any information about this part, which can have several reasons (e.g. the source code or at least a typings file for that is not available).
It seems obvious but for completeness let me say: "Go to definition" functionality must be provided by an extension for that language. Hence you need one that generates that info for vscode.
To 2) No, we cannot recommend any software here. This is off-topic for Stackoverflow. Use the extension search in vscode and see what's available. Often there is more than one extension for a given language and you can try out what works best for you.
Upvotes: 1