JavaScript Documentation Look-Up
GoLand shows you reference for standard JavaScript APIs, for symbols from your project and from its dependencies, as well as for symbols defined in external libraries. You can view the documentation for symbols in the Documentation popup, get information on method parameters, and open documentation on external sites if links to them are available.
To view documentation for a symbol at caret
-
Press Ctrl+Q or select Documentation popup.
from the main menu. The reference for the symbol is shown in the-
For a project symbol or for a symbol from the project dependencies, GoLand generates the documentation from the corresponding JSDoc comment.
-
For a standard JavaScript object or method, GoLand shows the corresponding JSDoc comment from the built-in TypeScript definition files d.ts. These files are bundled with GoLand and updated on a regular basis.
-
If no comment is found in the d.ts files, GoLand shows a summary from the corresponding MDN article.
-
To view the MDN documentation for a symbol at caret
-
In the Documentation popup Ctrl+Q, click the link at the bottom:
-
Press Shift+F1 or select
from the main menu.
GoLand opens the MDN article in the default GoLand browser.
To view documentation for a third-party JavaScript library
-
Download the required library or framework, configure it as an external JavaScript library, and specify the link to its external documentation, see Configuring a custom third-party JavaScript library for details.
-
Position the caret at the symbol in question and press Shift+F1 or choose
from the main menu.
To view documentation for an npm package
-
In a package.json file or in a
require
orimport
statement, position the caret at the name of the package and press Ctrl+Q -
To open the documentation on the npm official website in the browser, press Shift+F1.
To view reference in a tool window
To show documentation automatically
-
On the Code Completion page that opens, select the Show the documentation popup checkbox and specify the elapsed time.
To change the font size of quick documentation, do one of the following:
-
Click in the upper-right corner of the quick documentation window, and move the slider.
-
In the Settings/Preferences dialog (Ctrl+Alt+S), go to and select the Change font size (Zoom) with Ctrl+Mouse Wheel checkbox. See Useful editor configurations for details.