Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/erietz/ultisnips-vscode
:scissors: Mass convert ultisnips snippets to json for vscode
https://github.com/erietz/ultisnips-vscode
Last synced: 19 days ago
JSON representation
:scissors: Mass convert ultisnips snippets to json for vscode
- Host: GitHub
- URL: https://github.com/erietz/ultisnips-vscode
- Owner: erietz
- License: gpl-3.0
- Created: 2020-07-31T02:34:06.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-04T20:02:41.000Z (over 2 years ago)
- Last Synced: 2024-04-24T01:21:40.023Z (9 months ago)
- Language: Python
- Homepage:
- Size: 104 KB
- Stars: 26
- Watchers: 1
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![](https://img.shields.io/pypi/v/ultisnips-vscode)
# About
I don't always use VSCode. But when I do, I use Ultisnips.
This script allows you to write all of your snippets in vims Ultisnips format,
and convert the whole batch to json format for use in vscode.# Installation
`pip install ultisnips-vscode`
# Usage
- Create a config file at `~/.vscode/ultisnips-vscode.json`
- Add the paths to your snippets folders.
- On a mac this file might contain:``` json
{
"ultisnips-snippets": "~/.vim/UltiSnips/",
"vscode-snippets": "~/Library/Application Support/Code/User/snippets/"
}
```- On linux this file might contain:
``` json
{
"ultisnips-snippets": "~/.config/nvim/UltiSnips",
"vscode-snippets": "~/.config/Code/User/snippets/"
}
```- Source your shell, or log out and log back in so the script is in your
`$PATH`
- Run the command `ultisnips2vscode` to synchronize your snippets. This will
output something like:```
sh.snippets --> shellscript.json
python.snippets --> python.json
all.snippets --> global.code-snippets
texmath.snippets --> doconce.json
doconce.snippets --> doconce.json
gitcommit.snippets --> git-commit.json
zsh.snippets --> shellscript.json
json.snippets --> json.json
html.snippets --> html.json
c.snippets --> c.json
texmath.snippets --> latex.json
tex.snippets --> latex.json
texmath.snippets --> markdown.json
markdown.snippets --> markdown.json
```