No spaces after 'if'

Issue #131 wontfix
Anonymous created an issue

Is there a way to define the number of spaces the autocompleter inserts following an if?

I notice that it favors: if(/ condition /)

whereas I like: if (/ condition /)

Thanks!

Comments (2)

  1. Clams repo owner

    You can try the following:

    • In your package directory (Preferences->Browse Packages) create a directory SystemVerilog
    • Create a sub-directory Snippets
    • Create a file named if.sublime-snippet
    • Copy-paste the following text inside this file:
    <snippet>
        <description>If Condition</description>
        <content><![CDATA[if (${1:/* condition */}) begin
        ${0:/* code */}
    end]]></content>
        <tabTrigger>if</tabTrigger>
        <scope>source.systemverilog</scope>
    </snippet>
    
  2. Log in to comment