DEV Community

Cover image for Write your snippets with ultisnips and convert to json
Sérgio Araújo
Sérgio Araújo

Posted on

Write your snippets with ultisnips and convert to json

Introduction

Almost everyone who uses vim became curious about neovim, and among all of these geek guys the great majority has used ultisnips at least for a while. This little article aims to help you to convert ultisnips to vscode format, not because vscode but because the json format is becomming very common. I have found a site that teaches us how perform this task:

npm i -g convert-snippets
Enter fullscreen mode Exit fullscreen mode

Usage

convert-snippets source_file target_file
Enter fullscreen mode Exit fullscreen mode

Automatically detects source_file format and generates target_file

Sharing experiences

What do you use as snippet engine? Have you ever used neovim? Share your snippets and experiences in the comments section!

Discussion (2)

Collapse
mefercs profile image
MEFERCS

Bro how can i use it, im trying to convert my .json snippets to the .snippets format, to use it with ultisnipts (everything with the pourpose to use vs snippets).

Collapse
voyeg3r profile image
Sérgio Araújo Author

I have used it just once, to convert some snippets to json format as the way I have described in the article.