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

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

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/).