- Update your Windows 10 machine to the latest “Fall Creators Update” (mininum version 1709, build 16299.15).
Open PowerShell as Administrator and run:
- Install WSL distribution, for instance, Ubuntu
- Run Ubuntu, create a new user, keep in mind username:password.
Setup Ubuntu WSL environment: install CMake, GCC or/and Clang, configure and run openssh-server.
- To check the ssh connection, run the following command in your WSL distribution:
ssh username@localhost -p2222
Run CLion, make sure that configured WSL distribution is running and can be accessed via ssh. Check the detailed blog post about WSL support in CLion.
Configure the WSL toolchain in Build, Execution, Deployment | Toolchains in CLion.
Due to the IntelliJ platform issue, there is an issue with WSL file-system which is case-sensitive and Windows FS which is not.
As workaround you can pass properties (Help -> “Edit Custom Properties…”): idea.case.sensitive.fs=true, restart an IDE and rebuild the project index (File -> “Invalidate Caches and Restart”) after that.