Skip to main content

One post tagged with "Windows Subsystem for Linux"

Windows Subsystem for Linux

View All Tags

Fixing VS Code/Code.exe: Exec format error in WSL

· 2 min read
Adrian Escutia
A Rebel with a Cause, Innovating the Future

From time to time, we run into issues that seem trivial but can be quite frustrating, when VS Code doesn't open from WSL, it can be one of those issues and it happens after a Windows update or a VS Code update. Here's how to fix it.

I recently ran into an issue where I couldn't open Visual Studio Code from WSL. I would get the following error:

$ code .
/c/Users/adria/AppData/Local/Programs/Microsoft VS Code/bin/code: 61: /c/Users/adria/AppData/Local/Programs/Microsoft VS Code/Code.exe: Exec format error

Read on to learn how to fix this issue.