In this guide, you'll learn how to install and use Microsoft's Visual Studio Code on the Raspberry Pi. Visual Studio Code, often shortened to VSCode, is an integrated development environment (IDE) that has a bunch of handy features that make writing code more straightforward, such as syntax highlighting, code completion, easier refactoring, and git built-in.
The Raspberry Pi Foundation has excellent guides on how to set up your Raspberry Pi Computer to include the cabling, power, and software (Raspberry Pi OS).
You will want a Raspberry Pi computer, hooked up to a monitor along with a keyboard and mouse. To do this, it is easiest to use one of the full size models such as the Raspberry Pi 3, 3B, or 4. The installation can be on any Raspberry Pi but the newer models will run faster which means better response. The Pi Zero W works also but requires a USB hub to get the mouse and keyboard to both work at the same time. The Raspberry Pi 400 contains a keyboard, only needing a mouse and HDMI monitor.