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

PWA Studio Snippets

Lars Röttig

|
2,667 installs
| (1) | Free
Magento PWA Studio snippets by Lars Roettig
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Magento PWA Studio Snippets for VS Code

Version Installs

This extension for Visual Studio Code adds snippets for Magento PWA Studio.

Use Extension

See the CHANGELOG for the latest changes

Visual Studio Marketplace

Launch Quick Open:

  • Linux: Ctrl+P
  • macOS: ⌘P
  • Windows: Ctrl+P

Paste the following command and press Enter:

ext install larsroettig.vscode-pwa-studio

GitHub Repository Clone

Change to your .vscode/extensions VS Code extensions directory. Depending on your platform it is located in the following folders:

  • Linux: ~/.vscode/extensions
  • macOS: ~/.vscode/extensions
  • Windows: %USERPROFILE%\.vscode\extensions
git clone git@github.com:larsroettig/vscode-pwa-studio.git

For development you open the cloned directory and press F5 then VS-Code open new Window with the loaded extension.

PWA Studio Snippets

Snippet Short Snippet Purpose
pwa-comp pwac Simple function component
pwa-test pwat Snapshot test based on jest
pwa-test-case pwatc Simple Jest Testcase for snapshot
pwa-test-lib pwatl Snapshot test based on react testing library
pwa-export-default pwaed Default export for index
pwa-route pwaro Venia-UI route target
pwa-route-sub pwaros Venia-UI route child target
pwa-rich-con pwarc Venia-UI rich content renderer target
pwa-hook pwah Peregrine hook target
pwa-hook-sub pwahs Peregrine hook target sub
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft