DocsStart building
On this page

VS Code extension

Install Frontbacked FQL and FRL to get language highlighting, suggestions, hover explanations and diagnostics while you build themes.

Install from the Marketplace

In VS Code, open Extensions (Ctrl+Shift+X on Windows/Linux or Cmd+Shift+X on macOS). Search for Frontbacked FQL and FRL, choose the extension by feyitech, then select Install.

You can also open its Visual Studio Marketplace listing, or install from a terminal when the code command is available:

bash

Keep extension updates enabled in VS Code to receive the latest language support. If it is already installed, open its extension page and choose Update when an update is offered.

Open your theme folder

Open the whole theme folder in VS Code. FRL files use the .frl extension; backend/index.frl is your theme's rule file. FQL help appears in HTML, including {STATE} comments and f-* attributes. Documented Frontbacked methods also have help in JavaScript and TypeScript files.

If a .frl file appears as plain text, click its language name in the status bar and choose FRL.

Use suggestions and argument help

Start typing a field option, data root or function name. Choose a completion to insert the supported spelling. For example:

  • Type str.le in FRL for str.length, or $fn. for helpers declared in your rule file.
  • Type $file.video. in a video schema expression for available file facts.
  • Type an f- attribute in HTML for FQL binding suggestions.
  • Inside a function call, use Trigger Parameter Hints to see its arguments.

Hover over a function, schema key, root or directive for a short explanation. Supported options offer values such as schema types, visibility choices, image formats and video qualities.

Fix diagnostics

Open View → Problems to see detected issues, then select one to jump to its location. The extension checks supported syntax, undefined helpers, misspelled options, missing arguments and values that can be verified from your code.

For example, a theme helper declared as fn canEdit() is called as $fn.canEdit(). Native helpers keep their documented namespace, such as str.trim(value).

backend/index.frl
Rule input (JSON)

Use a complete version 2 rule file. Select a post with “postType” and “action”, or an “endpoint” by name. Saved data, jobs, payments and email need the local server. Dedupe replay protection also needs a site.

Check complete rules or run schemas, permissions, hooks and calculations against the input above. Add excerpts to a complete rule before running.

The editor cannot predict every value supplied by a user or a site setting. Run the theme with frontbacked-server, test allowed and denied actions, and check your hosted preview before publishing.

A practical workflow

  1. Keep FQL state and the FRL reference handy as you author pages and rules.
  2. Use completion and hover help to explore options without leaving your file.
  3. Fix errors in Problems before trying the page.
  4. Keep the local server running beside VS Code and exercise the actual forms, uploads and account flows in your browser.