All Projects → florinpatrascu → vscode-elixir-snippets

florinpatrascu / vscode-elixir-snippets

Licence: MIT license
Elixir code snippets for VS Code

Projects that are alternatives of or similar to vscode-elixir-snippets

Sublime Rails Snippets
Sublime Text snippets for the latest Ruby and Rails versions
Stars: ✭ 406 (+2288.24%)
Mutual labels:  snippets, editor-plugin
vscode-gleam
📟 Gleam support for VS Code
Stars: ✭ 34 (+100%)
Mutual labels:  snippets, editor-plugin
competitive-haskell
Snippets for competitive programming in Haskell
Stars: ✭ 23 (+35.29%)
Mutual labels:  snippets
kumux-colorscheme-engine
Kumux is the world's first dynamic circadian color scheme for code editors and other software.
Stars: ✭ 102 (+500%)
Mutual labels:  editor-plugin
sublime-node-snippets
A collection of completions/snippets for node.js v8.x
Stars: ✭ 14 (-17.65%)
Mutual labels:  snippets
EthereumSoliditySnippets
Set of useful snippet for efficiently using SublimeText and the Ethereum Solidity SmartContract programming language.
Stars: ✭ 27 (+58.82%)
Mutual labels:  snippets
common-lisp-snippets
Yasnippets for Common Lisp
Stars: ✭ 37 (+117.65%)
Mutual labels:  snippets
ZenScript
Visual Studio Code extension/Language Server for ZenScript, includes highlight, code snippet and language server(WIP). Works with 👇
Stars: ✭ 29 (+70.59%)
Mutual labels:  snippets
CodeView
Android Library to make it easy to create an Code editor or IDE that support any languages and themes, with auto complete, auto indenting, snippets and more features
Stars: ✭ 254 (+1394.12%)
Mutual labels:  snippets
easyvk
This app helps you create an apps with vk api easy!
Stars: ✭ 97 (+470.59%)
Mutual labels:  snippets
30-seconds-of-python
Short Python code snippets for all your development needs
Stars: ✭ 8,452 (+49617.65%)
Mutual labels:  snippets
TLDR.jl
A package for fast help and snippets
Stars: ✭ 16 (-5.88%)
Mutual labels:  snippets
Symfony-code-snippets
Over 100 Symfony Code Snippets for PhP code And Over 80 Twig Code Snippets. Just type the letters 'sf' to get a list of all available Symfony Code Snippets. For Twig Just Type the Tag name and you will get AutoCompletion.
Stars: ✭ 15 (-11.76%)
Mutual labels:  snippets
atom-linter-xo
Linter for XO
Stars: ✭ 90 (+429.41%)
Mutual labels:  editor-plugin
js-jsx-snippets
Extensions for React, Redux in JS with babel and ES7 syntax
Stars: ✭ 15 (-11.76%)
Mutual labels:  snippets
atom-perl6-editor-tools
A collection of useful Perl 6 editor tools
Stars: ✭ 19 (+11.76%)
Mutual labels:  snippets
competitive-programming-rs
Algorithm Snippets for Competitive Programming in Rust
Stars: ✭ 157 (+823.53%)
Mutual labels:  snippets
jquery-course
Code from my Udemy course "The Complete jQuery Course: From Beginner to Advanced"
Stars: ✭ 127 (+647.06%)
Mutual labels:  snippets
code-examples-manager
Software tool to manage your notes and code examples, to publish them as gists or snippets
Stars: ✭ 26 (+52.94%)
Mutual labels:  snippets
Cpp-Data-Structures
📐 C++ Implementations of data structures & algorithms from PSU course CS162/CS163
Stars: ✭ 19 (+11.76%)
Mutual labels:  snippets

Elixir code snippets for VS Code

Graciously borrowed all the snippets from the TextMate bundle for Elixir and refactored them to work with VS Code.

Snippets

prefix description
case case
cond cond
def def
df def (one line)
defc defcallback
defd defdelegate
defe defexception
defi defimpl
dmod defmodule
defmc defmacrocallback
defmp defmacrop
describe describe .. do ..
dmac defmacro
defp defp
defpro defprotocol
defs defstruct
do do
doc doc
ee embed_eex
ok {:ok, ..} ...
err {:error, ..} ...
oke {:ok, ..} = ...
erre {:error, ..} = ...
trc try do catch
exu, ex_unit ExUnit template
trr try do rescue (everything!)
fn fn
for for
fori for into
if if
ife if else
ife: if else (one line)
if: if (one line)
imp import
i inspect
ii IO.inspect
iib IO.inspect(binding(), module:line)
iil IO.inspect(label: ..)
iill IO.inspect with label incl. the line number
iins IO.inspect with a label containing relative path and line number. Label string can easily be discarded
ist IO.inspect the current stacktrace
iip pipe to IO.inspect(module:line)
ip IO.puts( ..)
p the pipeline operator
pry IEx.pry
% map/struct
mdoc moduledoc
mfs map from struct
msan sanitize a Map by dropping some of its keys
pe print_eex
rec receive
req require
test test .. do ..
unless unless
unlesse unless else
unlesse: unless else (one line)
unless: unless (one line)
supervisor OTP Supervisor module
gen_server OTP GenServer module
dynamic_supervisor Elixir DynamicSupervisor module
wt with .. do ..
wte with .. do .. else ..

Quick setup

Install it from: florinpatrascu.vscode-elixir-snippets

Or if you want to contribute with updates:

git clone https://github.com/florinpatrascu/vscode-elixir-snippets.git

And copy the vscode-elixir-snippets folder into the <user home>/.vscode/extensions folder. Restart Code.

Enjoy!

License

MIT License

Copyright (c) 2017-2019 Florin T. PATRASCU

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].