https://github.com/allentdan/entertain
Just for fun
https://github.com/allentdan/entertain
replace-text svelte todolist treeview typescript vscode vscode-extension
Last synced: 12 months ago
JSON representation
Just for fun
- Host: GitHub
- URL: https://github.com/allentdan/entertain
- Owner: AllentDan
- Created: 2022-01-01T09:24:20.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-07-07T10:06:41.000Z (over 3 years ago)
- Last Synced: 2025-02-14T11:51:36.797Z (about 1 year ago)
- Topics: replace-text, svelte, todolist, treeview, typescript, vscode, vscode-extension
- Language: TypeScript
- Homepage:
- Size: 274 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Entertain Sample
This is a plugin for entertainment.
## VS Code API
- entertain.generateTree
You can generate a directory tree with specified width and depth. Paste the following clip to setting.json (Ctrl+shifit+p to open).
``` json
"entertain.generateTree": {
"num_width": 10,
"num_depth": 4
}
```
- entertain.bulkReplace
Set the content and targets of bulk replacement in settings.json. Here is an example for formatting htmls from [tables generator](https://www.tablesgenerator.com/) to sphinx style:
``` json
"entertain.bulkReplace": {
"": "",
"": "",
"$MM": "$MM",
"model config file": "model config file",
"model config file": "model config file"
},
```
## How to customize a vscode plugin
First, install node.js.
```
# Using Ubuntu
curl -fsSL https://deb.nodesource.com/setup_17.x | sudo -E bash -
sudo apt-get install -y nodejs
# Using Debian, as root
curl -fsSL https://deb.nodesource.com/setup_17.x | bash -
apt-get install -y nodejs
```
Second, `npm install -g yo generator-code`.
Third, `yo code`.
Firth, install vsce: `npm i vsce -g`.
Fifth, run `vsce package`.
Finally, publish it to [marketplace](https://marketplace.visualstudio.com/).