I was happy to find out that Visual Studio Code is now compatible with Raspberry Pi OS as its my favourite code editor due to it being so flexible and configurable and its fully working for the Raspberry Pi and works on pi-topOS. personally i use VS Code all the time on my main PC and used to code on my PC and transfer the files to my RPi and then test if it works. now I do not have to
You can get it from the VS Code site and click on the “ARM” for the .deb and running it. Note it might flag it as malicious after its downloaded, its completely safe and is compiled by Microsoft themselves.
To install, run the .deb file and install it. You will find it under Programming in the menu