Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/ymc-github/vscode-extensions

vscode extensions
https://github.com/ymc-github/vscode-extensions

action code select

Last synced: 4 days ago
JSON representation

vscode extensions

Awesome Lists containing this project

README

        

# code-ts-sample

make code to jsdoc as sample and add ts to code block.

## usage

- install:

```powershell
# install from marketplace.visualstudio.com in cli ? do:
code --install-extension yemiancheng.yors-vscode-extension-code-ts-sample
```

- with code:

```ts
const ew = new ElementWheel();
ew.styleTransform = true;
ew.el = canvasRef.current;
// ew.listen();
const wheel = (e: unknown) => {
let meta = {
api: `mouse-wheel-in-elenment`,
description: `zoom element when mouse wheel on element`,
};
setApi(meta.api);
log(`[${api}] ${meta.description}`);

ew.zoom(e as unknown as WheelEvent);
};
;
```

- expect :

````ts
/*
* @sample
* ```ts
* const ew = new ElementWheel();
* ew.styleTransform = true;
* ew.el = canvasRef.current;
* // ew.listen();
* const wheel = (e: unknown) => {
* let meta = {
* api: `mouse-wheel-in-elenment`,
* description: `zoom element when mouse wheel on element`,
* };
* setApi(meta.api);
* log(`[${api}] ${meta.description}`);
*
* ew.zoom(e as unknown as WheelEvent);
* };
* ;
* ```
*/
````

- action : select -> ctrl + shift + p -> jsdocts

## License

MIT

## todo

- ~~publish~~
- ~~publish with github action~~
- ~~transform poly repo to mono repo~~.
- code as rs sample (`rsdoc`)