Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode: How do I open the documentation (ala `show hover`) in another pane?

Update: This is not currently supported. I have filed a feature request here. Be sure to upvote it if you like to see this implemented.


I like to be able to see the documentation of the symbol at cursor using a keyboard shortcut. I know of the command editor.action.showHover, but I can't scroll that popup's contents using the keyboard. In fact, I prefer to have a documentation pane open at the right side that just shows the docs for anything the cursor is on.

Here is a screenshot of show hover: enter image description here

like image 355
HappyFace Avatar asked Apr 20 '20 14:04

HappyFace


People also ask

How do I open documents in Visual Studio Code?

Ctrl+Shift+Space works when the cursor is at the function parameters list.

How do I see previous cursor position in VS Code?

As of VS Code 1.28, you can go to the last edit location using Ctrl+K Ctrl+Q - code.visualstudio.com/updates/…

How do I open a VS Code tab in a new window?

To open a new tab in VS Code, all you need to do is double-click it instead of single-clicking it. This may seem a bit weird and confusing, but once you've gotten used to this function, you'll realize that it actually makes your job much easier.

How do you open the left panel in VS Code?

In the VS code version 1.43, you can hide or show the side menu or activity bar by going under the 'VIEW' tab in the nav bar in the top margin of VS CODE(called the 'Menu Bar').


2 Answers

Have a look at the Docs View extension. I think it does what you want:

VS Code extension that displays hover documentation in the sidebar or panel.

Docs View demo

like image 77
Mark Avatar answered Oct 16 '22 17:10

Mark


This is not possible in VSCode at the moment,
but there is a lot of chatter on GitHub about the Intellisense suggestion UI.

If this is a feature you're interested in, you can add your vote
(click thumbs up in the first post of the thread) or your voice here: https://github.com/microsoft/vscode/issues/33752

In the meanwhile, you can make the suggestion box transparent https://github.com/microsoft/vscode/issues/22439#issuecomment-600855615
so at least you can see the code it covers.

Also related, but not identical:
https://github.com/microsoft/vscode/issues/15667
https://github.com/microsoft/vscode/issues/30797

like image 37
ultraGentle Avatar answered Oct 16 '22 17:10

ultraGentle