Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Lens StudioNew to Visual Studio Code? Get it now.

Lens Studio

Snap Inc.

snap.com
|
81 installs
| (2) | Free
Lens Studio support for Visual Studio Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VSCode Extension for Lens Studio

Features

  • Code completion for lenses script API
  • JavaScript debugger support for lenses scripts
  • Adds JavaScript snippets for lens development

Using JavaScript Debugger

  1. Open your project in Lens Studio
  2. Open the root of your Lens Studio project as a folder in VSCode
  3. Two debugging configurations should appear in VSCode "Run and Debug" tab. You could use Attach to running Lens configuration to attach to currently running Lens or use Debug Lens configuration to restart and debug Lens from startup
  4. You could place breakpoints before and during Lens debugging. To debug "onAwake" scripts you must use "Debug Lens" configuration

Note: JavaScript debugging is only supported in Lens Studio preview window.

Using JavaScript Snippets

Provided Lens Studio snippets would automatically appear in IntelliSense autocomplete.

You could see the full list of available snippets by invoking Insert Snippet VSCode command.

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft