I run vscode via termux on my S23 Ultra. Actually, I have set up two ways to do this. You can use termux to run vscode-server and then develop in your web browser, or you can set up termux:x11 and use the real GUI.
For the second option, the winning solution for me was to install proot-distro in termux. Using that, you can install a debian system and then you can run the arm version of vscode.
At any rate, the first step is to install F-Droid so you can get the termux apps. Termux:x11 is still experimental so you need to get the apk from github. Oh, and you can do all this without rooting! You just need to authorize unkown app sources, but you'd have to do that if you are going to run your own apps anyway.
Happy Hacking!