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

Sérgio Araújo @voyeg3r

About: I am a Free Software enthusiast and a (neo)?vim addicted, I also like shell script, sed, awk, and as you can see I love Regular Expressions.

Location:
Brazil
Joined:
Sep 23, 2017

Write your snippets with ultisnips and convert to json

Publish Date: Sep 8 '21
1 2

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!

Comments 2 total

  • MEFERCS
    MEFERCSNov 19, 2021

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

    • Sérgio Araújo
      Sérgio AraújoNov 20, 2021

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

Add comment