Commands and settings

Reference the LottieFiles commands, preview defaults, validation options, and generated developer files.

Open the Command Palette and type LottieFiles to find extension commands. Some file-specific commands also appear in editor, Explorer, or title-bar menus.

Preview and navigation commands

CommandResult
LottieFiles: Open SidebarFocuses the LottieFiles sidebar
LottieFiles: Preview in SidebarPreviews recognized content from the active editor
LottieFiles: Preview AnimationOpens a supported Lottie preview
Explore ContentsOpens a .lottie in dotLottie Explorer
RefreshRefreshes dotLottie Explorer
LottieFiles: Getting StartedOpens the extension walkthrough or sidebar fallback

Types and validation commands

CommandResult
Generate TypeScript Types for .lottieGenerates state-machine ID and marker-name types for one file
Generate All Lottie Types (Workspace)Generates supported types across the workspace
Validate Lottie FileValidates the selected Lottie file
Bundle as .lottiePackages a supported animation as .lottie
Generate .relottierc.jsonCreates a relottie configuration
Copy GitHub Actions WorkflowCopies a validation workflow template
Copy Vite Config SnippetCopies a Vite integration fragment
Setup Pre-commit HookAdds the supported validation hook setup
Run Validation (relottie)Runs the configured relottie validation

Review generated files before committing them. Type generation currently covers state-machine IDs and marker names, not themes or segments.

Preview and hover settings

SettingPurpose
lottiefiles.directPreviewJsonAutomatically preview recognized Lottie JSON or require an explicit preview action
lottiefiles.hover.enabledShow metadata when hovering a .lottie path in source code
lottiefiles.snippet.defaultFrameworkChoose React, Vue, Angular, Svelte, or Vanilla as the default
lottiefiles.snippet.autoplayDefault generated autoplay behavior
lottiefiles.snippet.loopDefault generated loop behavior
lottiefiles.snippet.speedDefault generated playback speed
lottiefiles.snippet.rendererChoose SVG or ThorVG for generated code where supported

Validation settings

SettingPurpose
lottiefiles.validateOnSaveValidate .lottie files when saved
lottiefiles.validateOnSave.skipAboveKbSkip on-save validation above a size threshold
lottiefiles.typeGen.warnAboveSizeKbWarn before type generation for large files
lottiefiles.validation.maxFileSizeKbConfigure the relottie size rule
lottiefiles.validation.requireAutoplayFalseConfigure the generated accessibility rule
lottiefiles.validation.requireSlotsConfigure the generated slot rule
lottiefiles.validation.jsonGlobChoose JSON files for workspace validation
lottiefiles.schemaValidation.enabledValidate against the official Lottie JSON Schema on save
lottiefiles.schemaValidation.severityReport schema issues as error, warning, or hint
lottiefiles.liveValidation.enabledShow live diagnostics while editing Lottie JSON
lottiefiles.statusBar.enabledShow the workspace validation summary

Settings and generated configuration can differ in scope. Inspect the generated .relottierc.json to confirm which rules CI will actually run.

Last updated: July 21, 2026 at 1:02 PMEdit this page