Clion is an IDE for c/c++ programming by JetBrians.
## Resources
- [Configuring Clion on Windows](https://www.jetbrains.com/help/clion/quick-tutorial-on-configuring-clion-on-windows.html#clang-cl)
- [Configuring Clion on Windows](https://www.jetbrains.com/help/clion/quick-tutorial-on-configuring-clion-on-macos.html)
- [Compilers: Configure Clion to use gcc and gdb](https://www.jetbrains.com/help/clion/how-to-switch-compilers-in-clion.html)
- [Remote Development](https://www.jetbrains.com/help/clion/remote-development.html#system-level)
- [Clion Remote Toolchain (remote dev)](https://www.jetbrains.com/help/clion/remote-projects-support.html#remote-toolchain)
- [WSL](https://www.jetbrains.com/help/clion/how-to-use-wsl-development-environment-in-product.html#wsl-tooclhain)
## gcc in Clion
Read [Compilers: Configure Clion to use gcc and gdb](https://www.jetbrains.com/help/clion/how-to-switch-compilers-in-clion.html)
- Run `which gcc` to locate gcc command and enter that into the setting

- gdb isn't awailable on Mac with Arm CPU

- If you can see the green arrow, then you can run it
<img src="https://hacker-storage.s3.us-east-2.amazonaws.com/2023/1/17/1766feeb-9d8b-4f4c-ba64-3a1f4a867f96.png" width="200" />
- Otherwise, edit or add a new configuration
<img src="https://hacker-storage.s3.us-east-2.amazonaws.com/2023/1/17/e63a9697-60f1-447d-a1b2-f43670eb4e8a.png" width="300" />
- Choose the `C/C++ File` (if you don't see it, restart Clion or computer)
<img src="https://hacker-storage.s3.us-east-2.amazonaws.com/2023/1/17/2633fca8-f66a-47b3-91b1-0587f95b05e0.png" />
- Then choose the gcc toolchain configured previously and choose the right source file
<img src="https://hacker-storage.s3.us-east-2.amazonaws.com/2023/1/17/a8eb064b-7278-4ca5-9957-1469720854c6.png" />