An open API service indexing awesome lists of open source software.

https://github.com/jeremyvii/vs-docblockr

DocBlockr for Visual Studio Code
https://github.com/jeremyvii/vs-docblockr

docblock docblocker docblockr javascript php typescript visual-studio-code

Last synced: 28 days ago
JSON representation

DocBlockr for Visual Studio Code

Awesome Lists containing this project

README

          

# VS DocBlockr (Visual Studio Code)

[![GitHub release](https://img.shields.io/github/release/jeremyvii/vs-docblockr.svg)](https://github.com/jeremyvii/vs-docblockr/releases/latest)
[![Visual Studio Marketplace Installs](https://img.shields.io/visual-studio-marketplace/i/jeremyljackson.vs-docblock)](https://marketplace.visualstudio.com/items?itemName=jeremyljackson.vs-docblock)

A Visual Studio Code port of the Atom package [Docblockr](https://github.com/nikhilkalige/docblockr).

[Extension page](https://marketplace.visualstudio.com/items?itemName=jeremyljackson.vs-docblock)

Currently three languages have been implemented:

* C
* Java
* JavaScript
* PHP
* SCSS
* TypeScript
* Vue.js

More languages will be implemented in the future.

## Usage

Type `/**` above the code you want to apply a docblock too, and press `enter`.

![Demonstration of extension](assets/demo.gif)

The `Render from selection` command is also available in the command palette.

![Demonstration of extension](assets/command-demo.gif)

This command can also be used to parse code that spans multiple lines. (Note:
you autocomplete multiple lines with the `/**` keybinding)

![Demonstration of extension](assets/command-demo-2.gif)

## Settings

Currently the following configuration settings have been implemented:

| Title | Description |
|--------------------------|----------------------------------------------------------------------------------------------------------------------|
| Align Tags | Whether or not to automatically align the parameters, return, or variable tags. |
| Block Comment Style | Which doc block comment style to use (`default\|drupal\|tsdoc`). |
| Column Spacing | Minimum number of spaces between columns. |
| New Lines Between Tags | Whether or not to add new lines between tags. |
| Default return tag | Whether or not to display a return tag. |
| \*SCSS Comment Close | Type of block level comment closing to use. **Deprecated: Use `vs-docblockr.commentClose` targeting SCSS instead** |
| \*SCSS Comment Open | Type of block level comment opening to use. **Deprecated: Use `vs-docblockr.commentOpen` targeting SCSS instead** |
| \*SCSS Comment Separator | Type of block level separator closing to use. **Deprecated: Use `vs-docblockr.separator` targeting SCSS instead** |
| Comment Open | Type of block level comment opening to use. |
| Comment Close | Type of block level comment closing to use. |
| Separator | Type of block level separator closing to use. |

\* *Note: VS DocBlockr does not currently support autocompletion of SASS blocks with `///`.*