Skip to content

abiwinanda/ex-snippet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Ex-Snippet

Sometimes Elixir modules such as GenServer and GenStage has a lot of boilerplates or configurations hence to save developer's time in copy pasting or memorizing these boilerplates, this snippet acts as a helper to generate code template for elixir modules such as GenServer, GenStage, Supervisor, and etc.

Setup

To use this snippet in vscode, you will need to configure user snippet through the command pallete (MAC shortcut: cmd + shift + p).

vscode-command-pallete

You could either create a global snippet or a snippet that just target elixir file extension (elixir.json).

vscode-use-snippet

The snippet definition can be found in ex-snippet.json file. Simply copy paste the json file to the snippet configuration that you create.

List of Snippets

The snippets contain in this repo are as follow:

genserver

genserver

genstage.producer

genserver

genstage.consumer

genserver

genstage.producerconsumer

genserver

supervisor

genserver

consumersupervisor

genserver

About

vscode snippet for elixir

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages