Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Betty ConnectNew to Visual Studio Code? Get it now.
Betty Connect

Betty Connect

App Eitje

|
1,580 installs
| (0) | Free
Betty templates editing and snippets in visual code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Betty Connect README

Description

Betty template editing and Snippets for custom components

Betty Connect makes template editing possible directly in Visual code. It will add a Betty Logo to the activity bar where it will show a tree view with all your templates. If you click a template it will open in an editor. When you save the file it wil save back to Betty Blocks. If you want to join the private slack channel about the development of this extension or have any questions contact me on appeitjedev@icloud.com.

Features

  • NEW - Use .liquid as extension to support liquid formaters.
  • NEW - Code snippets for page builder custom components.
  • NEW - Connect button so you do not have to use the Command pallet
  • Model Browser to have a quick overview of all your property names and relations.
  • Insert partials, javascript snd css files on cursor location including the liquid and html tags.
  • Connect visual code to a Betty App to directly edit your templates in visual code.
  • When you save a file it will be written back to Betty Blocks.
  • Reload the the template list with a simple click on a button.
  • Have different Visual code workspaces connected to different Betty Blocks Apps.

Requirements

  • You need your app identifier (your-app-identiefer.bettyblocks.com).
  • You need your Betty Blocks user account (name@company.com).
  • You need a API key. In Application user management in (my.bettyblocks.com) you can enable a API key for a user.

Usage

  1. To use Betty Connect first you must open a project folder in Visual Code.
  2. Then open your Command Pallet (CMD-SHIFT-P for macOS).
  3. Type Betty Connect.
  4. Input your app identifier and press ENTER.
  5. Input your user account and press ENTER.
  6. Input your API key and press ENTER.
  7. Click on the Betty logo and you should see a treeview with your template types and when you expand the types your templates will be listed.
  8. Click on a template to open it in a editor.
  9. Save the file (CMD-S on macOS) and it wil be written back to Betty Blocks.

When you click the + button next to a partial, javascript or css file it wil be inserted on the current cursor location. If you want to reload the list of templates in the treeview click on the refresh button on the top or type Betty Reload Templates in you command pallette.

Snippets

All snippets start with b

Component snippets

Command Description
bc Component
bcType Type
bcB const {} = B;
bcisDev const isDev = env === 'dev';
bcisEmpty const isEmpty = children.length === 0;
bchLink B.Link
bchgetProperty B.getProperty
bchGetAll B.GetAll
bchGetOne B.GetOne
bchGetMe B.GetMe
bchAction B.Action

Style helper snippets

Command Description
bsFunction Style arrow function
bsColors Color list
bshColor style.getColor
bshSpacing style.getSpacing
bshSpacingScreen style.getSpacing for screen size
bshFontColor style.getFontColor
bshFontSize style.getFontSize
bshFontSizeScreen style.getFontSize for screen size
bshFontFam style.getFontFamily
bshFontWeight style.getFontWeight
bshTextTransform style.getTextTransform
bshLetterSpacing style.getLetterSpacing
bshBorder style.getBorder
bshRadius style.getRadius
bshFont All font helpers

Prefab snippets

Command Description
bp Prefab
bpcc Component Configuration
bpoText Text option
bpoMultitext Multiline Text option
bpoNumber Number option
bpoToggle Toggle option
bpoColor Color option
bpoFont Font option
bpoSize Size option
bpoSizes Sizes option
bpoUnit Unit option
bpoEndpoint Endpoint option
bpoModel Model option
bpoUnit Sizes option
bpoProperty Property option
bpoFilter Filter option
bpoVariable Variable option
bpoAction Action option
bpoActionv1 Action v1 option
bpoActionInput Action Input option
bpoCustom Custom option
bpoCustomValue Custom option value
bpoConf Option configuration
bpoConfCondition Configuration condition

Known Issues

When you edit a template in Betty Blocks and that file is still open in visual code you wil not have the updated version in Visual Code. Just close the file without saving and when you click it in the treeview again you get the updated version. If you accidentally save or overwrite a version of a template you can always role back the edits in your template history in Betty Blocks.

Release Notes

  • NEW Model Browser to have a quick overview of all your property names and relations.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft