Snippets
This extension adds some basic snippets for Roku development.
Example snippets in .bs/.brs files:
Typing sub<tab> generates:
sub subName(params)
end subwith "subName" and "params" editable, and cursor inside the block
Typing for-each<tab> generates:
for each item in collection
end forwith "item" and "collection" editable and cursor inside the block
Example snippets in .xml files:
Typing <component<tab> generates
<component name="ComponentName">
<script type="text/brightscript" uri="ComponentName.brs" />
</component>with "ComponentName" editable and cursor inside the block
Typing <field<tab> generates
<field id="id" type="integer" />with "id" editable, and the type is a dropdown of possible values