code .
çalıştırdığımda
/mnt/c/Users/aghab/AppData/Local/Programs/Microsoft VS Code/bin/code: 61: /mnt/c/Users/aghab/AppData/Local/Programs/Microsoft VS Code/Code.exe: Exec format error
şöyle bir hata alıyordum ve şöyle çözdüm
sudo sh -c 'echo :WSLInterop:M::MZ::/init:PF > /usr/lib/binfmt.d/WSLInterop.conf'
sudo systemctl unmask systemd-binfmt.service
sudo systemctl restart systemd-binfmt
sudo systemctl mask systemd-binfmt.service
Kaynak:
https://github.com/microsoft/vscode/issues/189694
https://github.com/microsoft/WSL/issues/8952#issuecomment-1568212651