A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://rokucommunity.github.io/vscode-brightscript-language/Editing/snippets.html below:

Snippets

Snippets

This extension adds some basic snippets for Roku development.

Example snippets in .bs/.brs files:

Typing sub<tab> generates:

sub subName(params)

end sub

with "subName" and "params" editable, and cursor inside the block

Typing for-each<tab> generates:

for each item in collection

end for

with "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 "name" editable, and the type is a dropdown of possible values


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4