Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SublimeText2 auto complete wrong for ruby do block

The auto complete for my ruby do blocks in SublimeText2 started auto completing this: downto(0) { nnn } instead of do..end. I have not changed any settings recently so I am at a bit of a loss.

like image 778
andreofthecape Avatar asked Jun 06 '13 07:06

andreofthecape


1 Answers

maybe you should try dob, that is for do..end block snippet
or you can create this snippet your self:

<snippet>
<content><![CDATA[
do
  $1
end
]]></content>
    <tabTrigger>do</tabTrigger>
    <scope>source.ruby</scope>
    <description>do..end</description>
</snippet>

then you can use do tab to insert the do block which has no variable

like image 147
leonhart Avatar answered Sep 22 '22 23:09

leonhart