Build Fast, Ship Faster with Studio. Meet Studio by WordPress.com — a fast, free way to develop locally with WordPress.
Share your local sites with clients or colleagues and keep your local development process smooth and simple—with unbreakable infrastructure behind the scenes.
To set up your development environment can be a hassle - especially if you try to do it en a MS Windows environment !
In the Introduction to Block Development: Build your first custom block, there is a guide to Set up your development environment.
You'll need the node/npm installed! But in the Set up your development environment, there's not any direct description on how to do this on Windows.
The guide recommends using NVM (Node Version Manager) to handle different versions of Node. Unfortunately, NVM is mostly supported on Linux and Mac (Uses POSIX-compliant shell). It should work through WSL (Windows Subsystem for Linux) depending on the version of WSL.
This tutorial shows a WordPress recommended way !
The way recommended here:
If you’re on a Windows machine, you will need to install the Chocolatey package manager for Windows to install nvm. First open PowerShell with administrative privileges by right-clicking on the PowerShell menu item and selecting Run as Administrator. Then browse to the Chocolatey setup documentation and scroll down to the Install with PowerShell instructions. Copy the instructions and right-click in the PowerShell window to paste them.
See the Video or read the Video Transcript to learn more.
This guide is for setting up your local environment for JavaScript development for creating plugins and tools to extend WordPress and the block editor.
In the course: Introduction to Block Development: Build your first custom block the 2nd lesson Set up your development environment
gives also recommendations for choise of IDE.
A development environment is a catch-all term for what you need setup on your computer to work.
This guide for setting up the local environment is based on Ubuntu and using the curl command.
Good to know:
cURL (Client URL) comes pre-installed on Windows and macOS — otherwise, you can download the package from the cURL website.
Microsoft ships curl too
Curl is also shipped by Microsoft as part of Windows 10 and 11.
Overview of Visual Studio Code
It can be difficult to remember the theme.json settings and properties while you develop, so a JSON scheme was created to help. The schema is available at https://schemas.wp.org/trunk/theme.json
Code editors can pick up the schema and can provide help like tooltips, autocomplete, or schema validation in the editor. To use the schema in Visual Studio Code, add "$schema": "https://schemas.wp.org/trunk/theme.json" to the beginning of your theme.json file.
Sarah Snow has made this tutorial on Using Schema with WordPress Theme.json