This plugin provides JSDoc tag completions and displays detailed documentation for each tag.
- Using the Preset API, you can define documentation and syntax for each JSDoc
tag
.
These definitions will appear in the completion details shown by your editor.
$ npm i --save-dev typescript typescript-jsdoctag-completions-plugin
Next, configure the plugin in your tsconfig.json
:
Then launch Visual Studio Code or your preferred TypeScript editor.
The plugin supports two types of presets:
-
Built-in presets:
Preset name Details default TypeScript built-in JSDoc tags and Inline JSDoc tags closure Closure Compiler JSDoc tags -
Custom presets:
To create your own preset, implement
TJSDocTagRawPreset
as defined in preset-api.d.ts:
The priority for resolving the locale setting is:
-
Project configuration (tsconfig.json, etc.)
- VSCode settings (vscode extension vscode-typescript-jsdoctag-completions)
-
OS locale
- Set the TypeScript version in VSCode: ensure that the TypeScript version in VSCode is set to the version installed in your project.
- Include your source files in tsconfig.json: The plugin only applies to files listed in the "include" section.
This project is licensed under the MIT License. See the LICENSE file for details.