This extension provides pop-up documentation for Nuxt components on hover right in VS CODE. No need to open the browser to check the documentation.
- Pop-up documentation for Nuxt components on hover
- Customizable documentation comment template
- Customizable keys to quick insert a PopDoc comment (default:
<pd
)
This extension relies upon the .nuxt/components.d.ts file generated by Nuxt to locate the PopDoc documentation comment.
Place all PopDoc comments at the top of the component file, outside of the script and template tags.
This extension contributes the following settings:
nuxtcomponentpopdoc.enable
: Enable/disable this extension.nuxtcomponentpopdoc.commentTemplate
: The template for the PopDoc comment.
<!-- @PopDoc
### Component name
This is a short description of how to use the component.
### Props
- example list of props
### Emits
- example list of events
### Slots
- example list of slots
### Examples
```vue
<template>
<div>Test</div>
</template>
```
-->
nuxtcomponentpopdoc.quickInsertKeys
: The keys to quick insert a PopDoc comment.
Initial release of Nuxt Component Pop Doc