@RaphaelOtter install the bitvise or winscp clients on windows and enable ssh on the.pi.

then you can edit from your PC and copy files back and forth and execute commands in the ssh window.

I never edit on the pi anymore