If you have not already done so, download Visual Studio Code for Mac, Windows, or Linux. We recommend the Stable build. If you already have Visual Studio Code install you can add the Particle Workbench to your existing install.
Check your email to download the Particle extensions and extract the files from the zip file:
particle-vscode-theme-1.0.0-alpha.7.vsix
particle-vscode-snippets-1.0.0-alpha.7.vsix
particle-vscode-core-1.0.0-alpha.7.vsix
Then install:
From the View menu, select Extensions.
From the … menu select Install from VISX.
Repeat for each of theme, snippets, the core last.
The core installation will take a few minutes. There’s an indicator at the top of the extensions panel that shows the install is still in progress. When complete, you’ll be prompted to reload. Click the Reload Now button.
This is cool. Now that I’ve installed it, is there a Getting Started for how to configure/use it? For example, I can open an existing Particle project, but what debugger/board-type etc do I use? Not seeing anything specific to Particle/Electron in the lists.
I already use vs-code and have batch files to use the particle-cli for online compilation using the selected Device-OS of my choosing.
How do I compile and debug locally? the extensions all installed and the toolchain loaded, but I can’t figure out where to use it from. there is nothing in the launch.json file for compilation and debug.
So whats the best link, thread to be watching to get all the latest updates on this?
When it was installing I noticed ver 0.7.0 was being downloaded. Are we forced to use 0.7.0? I can't use that version as it causes my application problems. I still use 0.6.3.
After installation I opened a folder to a project but have no clue what to do next.
Tried the
But that brings this up which IMHO means nothing to me.
Nice! So, with a little help from Particle folks, I learned that the next step after installing was to use the MSCode Command Palette (Ctrl-Shift P) to invoke, “particle: create new project”
Once I brought in some code that runs on the Photon, I used the Build menu to kick off a build. It builds. Rah.
This will be great particularly when I break the network stack and the web IDE isn’t available for an update (…without device reset).
Particle: Install Library will have to do both. For cloud build it will use the project.properties dependencies but for local build it needs a local copy of the sources.
Switching versions is easy (although it may become even easier in future)
Open yourProject.code-workspace and change "particle.firmwareVersion": "0.7.0" to "particle.firmwareVersion": "0.6.3" and save.
This should download the required sources and set you up for local compiling of all modules too.