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

Workbench Snippets

Particle

particle.io
|
74,450 installs
| (0) | Free
(Subcomponent) Code snippets for Workbench.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Particle Workbench Snippets

Code snippets to speed up development of Particle Device OS Apps in Particle Workbench.

Installing for the first time? Use the extension pack!

Installation

  1. Open Extensions sidebar panel in Visual Studio Code. View → Extensions
  2. Search for Particle Workbench Snippets
  3. Click Install to install it.
  4. Click Reload to reload the your editor

To install all Workbench plugins together, visit Particle Workbench (pack)

Usage

Type part of a snippet, press enter, and the snippet unfolds.

Snippets

Snippet Details
Wiring and setup
class class
setup setup()
loop loop()
#include #include
STARTUP STARTUP()
product id version PRODUCT_ID()
SYSTEM_MODE SYSTEM_MODE()
pinMode pinMode()
digitalWrite digitalWrite()
digitalRead digitalRead()
analogWrite analogWrite()
analogRead digitalRead()
Particle Cloud Primitives
Particle.variable Particle.variable()
Particle.function Particle.function()
Particle.function handler Particle.function()
Particle.subscribe Particle.subscribe()
Particle.subscribe MY_DEVICES Particle.subscribe()
Particle.subscribe handler Particle.subscribe()
Particle.unsubscribe Particle.unsubscribe()
Particle.publish Particle.publish()
Particle.publish private Particle.publish()
Particle.connect Particle.connect()
Particle.connected Particle.connected()
Particle.disconnect Particle.disconnect()
Particle.process Particle.process()
Mesh
Mesh.subscribe Mesh.subscribe()
Mesh.subscribe handler Mesh.subscribe()
Mesh.publish Mesh.publish()
Mesh.localIP Mesh.localIP()

Documentation

Docs are available at: https://docs.particle.io/workbench

Changelog

You can find the master changelog here

Troubleshooting

Having issues getting up and running? Try our Troubleshooting guide.

Feedback

Visit our community forum at https://community.particle.io/c/DT/particle-workbench to share your feedback.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft