9

I can use Ctrl+left-click in the name of function to view library functions in PyCharm, and I want to do the same in VScode; what should I do?

I may not be very clear, so I recorded a gif.

demo

2 Answers 2

5

@cnkl, what you're after is the 'go to definition' feature. You can go to the definition of a symbol by pressing F12. If you press Ctrl and hover over a symbol, a preview of the declaration will appear

You can find more details here: https://code.visualstudio.com/docs/editor/editingevolved#_go-to-definition

Sign up to request clarification or add additional context in comments.

1 Comment

I know that,but if the function was defined in the standard library,such as math.fabs(),then pressing F12 have no effect.Thanks for your answer.
0

I stumple upon this question, and with the latest vscode (version 1.17.2), I found when I move my mouse and hover on the standard library, I can see the python doc like this: hover over

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.