Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ymc-github/vscode-extensions
vscode extensions
https://github.com/ymc-github/vscode-extensions
action code select
Last synced: about 1 month ago
JSON representation
vscode extensions
- Host: GitHub
- URL: https://github.com/ymc-github/vscode-extensions
- Owner: YMC-GitHub
- License: mit
- Created: 2024-05-05T14:09:15.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-05-23T04:51:17.000Z (8 months ago)
- Last Synced: 2024-05-23T05:39:11.089Z (8 months ago)
- Topics: action, code, select
- Language: TypeScript
- Homepage:
- Size: 243 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`)