VSCode:如何在另一个窗格中打开文档(ala `show hover`)?

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

更新:目前不支持。我已提交功能请求 here。如果你想看到这个实现,一定要给它投票。


我希望能够使用键盘快捷键查看光标处符号的文档。我知道命令 editor.action.showHover,但我无法使用键盘滚动该弹出窗口的内容。事实上,我更喜欢在右侧打开一个文档窗格,它只显示光标所在的任何内容的文档。

这是show hover的截图:

目前 VSCode 无法做到这一点,
但是 GitHub 上有很多关于 Intellisense 建议 UI 的讨论。

如果这是您感兴趣的功能,您可以投票
(点击线程的第一个 post 竖起大拇指)或您的声音:https://github.com/microsoft/vscode/issues/33752

同时,您可以将意见箱设置为透明https://github.com/microsoft/vscode/issues/22439#issuecomment-600855615
所以至少你可以看到它涵盖的代码。

也相关,但不完全相同:
https://github.com/microsoft/vscode/issues/15667
https://github.com/microsoft/vscode/issues/30797

看看 Docs View 扩展。我认为它可以满足您的需求:

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