You can run Visual Studio Code on Raspberry Pi devices.

https://code.visualstudio.com/docs/setup/raspberry-pi