Skip to main content

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:
{
    "ultisnips-snippets":  "~/.vim/UltiSnips/",
    "vscode-snippets": "~/Library/Application Support/Code/User/snippets/"
}
  • On linux this file might contain:
{
    "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

Metadata

Release files for ultisnips-vscode 1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ultisnips-vscode 1.2
File Size Uploaded Provenance Actions
ultisnips-vscode-1.2.tar.gz 17.5 kB Without provenance Details for ultisnips-vscode-1.2.tar.gz

Release files / ultisnips-vscode-1.2.tar.gz

Download URL ultisnips-vscode-1.2.tar.gz
Size 17.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f03ce0f5c52595fa1e67fb2127088b6f7080424aeab8a3f4d05602f23500b550
BLAKE2b-256 checksum
How to use checksums
db4d7b3b22028be19ba439b3f44b6f7464707c8c56727d6d7838870989ee2440
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.11.3 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.1

Security for ultisnips-vscode 1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page