I have been searching for a solution to the following problem with no luck. If anyone know’s how to fix this or what the following feature is called so I could research more myself it would be appreciated.
Issue:
In certain syntaxes Sublime will wrap a new bracket around the line below it if it contains a bracket. For example in a go text template:
<div class="somediv">
{{ $var }}
</div>
Then I put my cursor in a new line above the brackets (like handle bars).
<div class="somediv">
| <-- Cursor here
{{ $var }}
</div>
Then when I start typing another set of double brackets I get.
<div class="somediv">
{ | <-- Cursor is now here
{{ $var }}
}
</div>
What I wanted to do was this
<div class="somediv">
{{ $helloWorld }} | <-- Cursor is now here
{{ $var }}
</div>
A possible solution would be to create a plugin paired with keyboard shortcut to disable this feature. Or, maybe it can be disabled within certain syntaxes?
Thanks