Coding on Microsoft Surface Pro

Hello everybody,
After a long period without coding, I am again in. I would also code on the move while commuting. That’s why I was thinking about buying a miscorosft surface 6 pro. So I wonder how feasible is coding using the stylus as input device, especially, for writing code line by line
Thanks for any suggestions

I have a pro, older model. The writing of code with the pen will drive you to distraction, it works, recognition is good but you can’t replace the keyboard for typing long lines of code.

I got the idea, thank you Paul