Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I view python library functions in VScode

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

like image 975
cnlkl Avatar asked May 28 '26 05:05

cnlkl


1 Answers

@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

like image 108
Don Avatar answered May 30 '26 19:05

Don