You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All snippets used fixed indents of 1. This is common in PICO-8 (to reduce character count), but some programmers may prefer indentations of 2 or 4 spaces (esp. if using Lua minifier like me, so they don't care about character count at first).
Sublime Text doc recommended to always insert an actual tab as indent in snippets. The tab would then be expanded to a tab, or spaces with the right amount, depending on the file's current settings.
So, I suggest replacing all 1-space indents with tabs. Programmers used to 1-space indents will still be able to insert them, provided their file is set to Indent: 1 space. While others will be able to indent with whatever they prefer.
Ex:
<snippet>
<content><![CDATA[function ${1:foo}(${2:var}) ${3:-- do something}end]]></content>
<tabTrigger>func</tabTrigger>
<scope>source.p8</scope>
<description>function</description>
</snippet>
would become
<snippet>
<content><![CDATA[function ${1:foo}(${2:var}) ${3:-- do something}end]]></content>
<tabTrigger>func</tabTrigger>
<scope>source.p8</scope>
<description>function</description>
</snippet>
The invisible space before ${3 above is an actual tab.
The text was updated successfully, but these errors were encountered:
All snippets used fixed indents of 1. This is common in PICO-8 (to reduce character count), but some programmers may prefer indentations of 2 or 4 spaces (esp. if using Lua minifier like me, so they don't care about character count at first).
Sublime Text doc recommended to always insert an actual tab as indent in snippets. The tab would then be expanded to a tab, or spaces with the right amount, depending on the file's current settings.
So, I suggest replacing all 1-space indents with tabs. Programmers used to 1-space indents will still be able to insert them, provided their file is set to Indent: 1 space. While others will be able to indent with whatever they prefer.
Ex:
would become
The invisible space before ${3 above is an actual tab.
The text was updated successfully, but these errors were encountered: