Skip to main content
You can customize the appearance and behavior of the Rive code editor by editing its configuration file. Your settings will be reflected in all code editor views for your user account.

Opening the Configuration

Press ⌘ + , on macOS or Ctrl + , on Windows to open the editor configuration.

Editing the Config

The configuration file returns a Lua table. Start with the default configuration and override any settings you want to change.

Example Configuration

-- Import the default configuration
local config = require('config/default')

config.theme = require('theme/shades-of-purple-super-dark')
config.code.fontSize = 14
config.code.lineHeight = 20
config.code.selectionCornerRadius = 5
config.code.executionTimeoutMs = 2000

return config

Available Options

OptionDescription
config.themeThe editor theme.
config.code.fontSizeFont size used in the code editor.
config.code.lineHeightHeight of each line of code.
config.code.selectionCornerRadiusCorner radius of the selection highlight.
config.code.executionTimeoutMsMaximum time a script can run before being stopped.
To browse available themes, type:config.theme = require('theme/')The editor will show the full list through autocomplete.autocomplete editor themes