Mojo VS Code Extension in WSL

Why can't I see syntax highlighting and completions in WSL?
2 Replies
Jack Clayton
Jack ClaytonOP2y ago
First open a mojo file in WSL mode on VS Code, then go to the extension tab and press the install extension in WSL button:
No description
Jack Clayton
Jack ClaytonOP2y ago
Then open your settings.json and update your path with <your-username> changed in:
{
"mojo.modularHomePath": "/home/<your-username>/.modular"
}
{
"mojo.modularHomePath": "/home/<your-username>/.modular"
}
Use the absolute path starting from /home, don't include the $wsl...

Did you find this page helpful?