Closed ymtszw closed 8 years ago
This looks good to me. Before I merge it I was wondering if it might make more sense to expand the snippet to something like this:
@doc """ <- put the cursor right here
"""
That way the user simply needs to hit return to start a new line (which will then be indented correctly). Its not something that has to be a part of this PR. Just wanted to get some feedback on the idea.
That looks more than OK, actually. And it's easy to achieve:
'doc':
'prefix': 'doc'
'body': '@doc """$0\n"""'
This will do just the thing.
I'm fine with the change, shall I push this?
I think that works great. Lets make sure that it works the same way for doc
and moduledoc
and it should be good :+1:
2d842fc Change applied
Sorry about the delay. This looks good to me. Thanks for taking care of this :tada:
See https://github.com/elixir-lang/language-elixir/issues/68