← Back to all how-tos

Project Setup

Install the VSCode extension

Install the React Bricks VSCode extension for snippets and faster development.

Estimated time: 1 minRaw Markdown

The React Bricks VSCode extension provides useful snippets and improves your development workflow.

Open Extensions in VSCode

Open VSCode and go to:

  • View → Extensions

Search for the extension

Search for "React Bricks".

Install

Click Install on the official React Bricks extension: React Bricks Snippets.

Use snippets

After installation, you can create a new brick simply typing brick on an empty tsx file, and use many other snippets (see below).

Available snippets

PrefixDescription
brickScaffolds a new Brick. Use it in a new file
TextAdds a React Bricks <Text> component
RichTextAdds a React Bricks <RichText> component
ImageAdds a React Bricks <Image> component
RepeaterAdds a React Bricks <Repeater> component
FileAdds a React Bricks <File> component
sideEditPropCreates a new SideEditProp
selectOptionsCreates the selectOptions for a select SideEditProp

Why this helps

  • Faster brick creation
  • Consistent structure
  • Less boilerplate code