Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show complete documentation in vscode

Jupyter Notebook shows the complete documentation on shift + tab. Is there a way I can get the same with vscode?

Ctrl + shift + space only provides methods signature.

Edit: I am hoping to see something like this

enter image description here

like image 240
Vinicius Avatar asked Jul 31 '20 23:07

Vinicius


People also ask

How do you see documents in VS Code?

Definition Preview Hover from the keyboard Previously, only the command Show Hover was provided, which is equivalent to hovering the mouse cursor over a symbol. Now, with Show Definition Preview Hover , the detailed hover information can be shown via the keyboard.

How do I view documents in Visual Studio?

The idea is that you get a summary in the intellisense tooltip, and can press F1 to show the full help, or F12 to jump to the declaration (which usually includes the documentation).

How do you see release notes in VS Code?

If you'd like to read these release notes online, go to Updates on code.visualstudio.com. Watch the release party: Listen in as the VS Code team discusses some of the new features. You can find the recording of the event on our YouTube channel.


3 Answers

I have the same problem. The only solution I found is to use "?" at the end of the function like,

np.random.randint? run

enter image description here

like image 195
Caner Erden Avatar answered Oct 01 '22 09:10

Caner Erden


Just started using the Docs View extension, and it is awesome!
https://marketplace.visualstudio.com/items?itemName=bierner.docs-view

It puts the documentation you usually see on hover in the side panel. (I learned about it from this tweet)

enter image description here enter image description here

Works in the notebook view, too! enter image description here

like image 21
blaylockbk Avatar answered Oct 01 '22 11:10

blaylockbk


I have recently been trying to get to use VSCode with Jupyter Notebooks as well and for me (on macOS, I assume it would be the same for Windows) all I have to do is hover the mouse on top of the method I wanna get the documentation for and wait a little bit, and it'll pop up.

Please take a look at the image below (since this is my first answer I can't embed the picture, but you should be able to click the link to have a look).

VSCode documentation popup

like image 33
Matt Avatar answered Oct 01 '22 10:10

Matt