- Update your Windows 10 machine to the latest “Fall Creators Update” (mininum version 1709, build 16299.15).
Open PowerShell as Administrator and run:
Code Block language powershell
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
- 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.
Code Block language bash
wget https://raw.githubusercontent.com/JetBrains/clion-wsl/master/ubuntu_setup_env.sh && bash ubuntu_setup_env.sh
- 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.