Reputation: 61
In Intellij the shortcut for showing official Javadoc is CTRL+q
.
Any shortcut to do this in VSCode?
Upvotes: 5
Views: 11659
Reputation: 336
There is an extension calls
Docs View which show you the docs in separate vs code window
Upvotes: 2
Reputation: 81
If you would like to view documentation in a separate panel, there is an extension called Docs View. Simply set shortcuts for docsView.documentation.focus
and workbench.action.togglePanel
, position the cursor over the class, attribute or method and press the shortcut. Other useful commands are editor.action.showHover
and editor.action.showDefinitionPreviewHover
.
Upvotes: 1
Reputation: 1275
VS Code have such capability but you may need to set a keyboard shortcut first. First go to the configure page:
Search Show Definition Preview Hover
, you will see it, and just set a shortcut whatever you want:
Upvotes: 1
Reputation: 3027
to view the Java documentation in Visual Studio Code to you can do it by the following ways:
NOTE:
if it didn't work you need to install the java extension path in your visual studio code which the extension id is: @id:vscjava.vscode-java-pack
Upvotes: 1