- Add quotes to describe and test, add testc, i.e.
test "name of text", %{conn: conn} do ... end
- add two new snippets: mp, for Map.put/3, and: mpn, for Map.put_new/3
- Add a snippet for inspecting stacktraces #21. Thank you @s3cur3
- Fix trailing comma #20. Thank you @easink
- new regex formula for using the RELATIVE_FILEPATH instead of the TM_FILEPATH variable. This matches any level of nested folders (see William's question in StackOverflow). Removed the "Test" at the end of the "ExUnit" snippet because as a (opinionated) convention the file name includes "_test" at the end of the file and included the prefix ":", useful when the key and value are the same. Thank you @williamthome
pry
snippet, thank you @PJUllrich
- readme format fix
- New snippet:
iins
;IO.inspect
with a label containing relative path and line number. Label string can easily be discarded inspired bby this tip I added my own take on it. Hopefully you can enjoy this newer version as much as I do :) - dmod: Make more robust when used outside default folders #13
- ^^^ Thank you @sascha-wolf <3
- Reduced complexity of the syntax
- Generate module name from file path
- ^^^ PR from @marocchino Thank you <3
- bugfix: Fix comma in array for ExUnit snippet #9. Thank you @ewired
- test and describe snippets
- fix version numbering
- merge the ex_unit template from @neofelisho, thank you!
- README
- replace
defmod
withdmod
, for insertingdefmodule ...
- replace
defm
withdmac
, for insertingdefmacro ...
- new snippet:
mfs
, Map from Struct - new snippet:
msan
, sanitize a Map, by dropping some of its keys
- New snippet:
iill
AnIO.inspect
with an optional custom message, displaying the file path relative to the app's root folder and the line number in the code where the inspect is defined. If your shell supports it, i.e. iTerm2, then you're just one-click away from jumping to the exact line in the code, where the inspect is. No more searching for forgotten inspects!
- Merge pull request #5 from ZachParsons/location-inspect. Thank you!
- add "p" for pipeline operator |> Thank you: @crunchysoul
- long time waiting for it ..
with
andwith/else
:)
- genserver, try/catch/rescue, snippets for {:ok/error, ... } and so much more. Please see the README, from more details. Enjoy!
- fixes #1, the
defmod
snippet is now able to transform the current file name to an Elixir module name i.e. my_module.exs to MyModule. Requires the latest VSCode ~> 1.18.0
- new snippets:
fori
,iip
,iil
- short index of every snippet; see the README, fro more details
- corrections
improve a bit the defmod
snippet until better support from VSCode?! See issue #1, for more details
- v0.0.11 change the extension's display name to:
Elixir snippets
- v0.0.10 first public release
- Initial release