Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/0x-jerry/vscode-remote-snippets
Auto fetch snippets from remote and load it.
https://github.com/0x-jerry/vscode-remote-snippets
remote remote-snippet snippet typescirpt vscode-extension
Last synced: about 2 months ago
JSON representation
Auto fetch snippets from remote and load it.
- Host: GitHub
- URL: https://github.com/0x-jerry/vscode-remote-snippets
- Owner: 0x-jerry
- License: mit
- Created: 2022-03-06T00:49:52.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-04T00:04:27.000Z (8 months ago)
- Last Synced: 2024-05-04T01:24:28.071Z (8 months ago)
- Topics: remote, remote-snippet, snippet, typescirpt, vscode-extension
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=fantasy.vscode-remote-snippets
- Size: 243 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# vscode-remote-snippets
Auto fetch snippets from remote and load it.
## Features
- Support remote snippets.
- Support local dynamic snippets, which can written in JS.## Usage
You may need specify some snippets remote address, It supports a single snippet config, something like `https://raw.githubusercontent.com/hollowtree/vscode-vue-snippets/master/snippets/html.json`, it also supports snippets config, like `https://raw.githubusercontent.com/0x-jerry/snippets/main/package.json`. And the most excited feature, local dynamic snippets.
```json
{
"remote-snippets.snippets": [
{
"path": "https://raw.githubusercontent.com/hollowtree/vscode-vue-snippets/master/snippets/html.json",
"language": "vue,html"
}
],
"remote-snippets.config": [
"https://raw.githubusercontent.com/0x-jerry/snippets/main/package.json"
],
"remote-snippets.js": ["snippets/now.js"]
}
```About how to use local dynamic snippets with `remote-snippets.js` configuration item, please see [example](./example).
About how to write snippet, please refer to https://code.visualstudio.com/docs/editor/userdefinedsnippets#_snippet-syntax.