Sublime Forum

How to align text with snippet entry point

#1

SublimeHaskell package has a snippet to insert a if-then-else “block” in code…

<snippet>
	<content><![CDATA[if ${1:condition} then ${2:expression} else ${3:expression}]]></content>
	<tabTrigger>if</tabTrigger>
	<scope>source.haskell</scope>
	<description>if-then-else</description>
</snippet>

It is ok, but it would be great if the snippet text could be automatically aligned with the snippet entry point, like this:

someFunction par1 par2 = if test
                         then Nothing
                         else Just (something)

Is this possible?

0 Likes

#2

You would need a plugin for this since there is no built-in functionality for this. I’m not aware of such plugin existing.

0 Likes