Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dawoox/hub-workshop-clion
Workshop on how to use CLion efficiently
https://github.com/dawoox/hub-workshop-clion
clion epitech-workshop
Last synced: about 5 hours ago
JSON representation
Workshop on how to use CLion efficiently
- Host: GitHub
- URL: https://github.com/dawoox/hub-workshop-clion
- Owner: Dawoox
- Created: 2023-12-04T15:01:36.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2023-12-04T15:25:24.000Z (11 months ago)
- Last Synced: 2024-10-12T00:26:16.957Z (27 days ago)
- Topics: clion, epitech-workshop
- Language: C
- Homepage:
- Size: 416 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
CLion: what is it and how to use it.
## Why use it?
CLion is a powerful IDE, unlike text editor it analyze your code to integrate seamlessly in your existing workflow and provide graphical interfaces for your CLI tools (Make, valgrind, etc).
It make easy to code, debug, and analyze your code for small project to big, multiple weeks projects.
It is intuitive, you don't need to configure a lot of things to get it up running, and once in it you can manage your project without ever leaving CLion.## Know issues
* The cursor disappearing randomly on Linux
* High RAM usage (If you have more than 8GO of RAM it won't be an issue)
* Can take several seconds to load## Requesting a student license
During this workshop we will use the free trial of CLion (of 30 days) but we will also quickly see at the end how to request a free student license to have CLion (or any Jetbrains tool) for free during your cursus at Epitech.
#### Installing CLion
*For those of you who haven't installed CLion, you can install it [here](https://www.jetbrains.com/clion/download/#section=linux)**
## How to open an existing project
During this workshop we will use this project as a template to test CLion utilities.
First clone this repository on your laptop using your terminal (I recommend cloning your project in C in the CLionProjects repository at your home directory). Next launch CLion you should see the projects window :![](./doc/projects_window.png)
Here click on 'Open' and select the folder you just cloned (and not it's content !).
## Here we are, finally, in CLion
Now let's configure our project in CLion to enable all of its capabilities.
The use of a terminal during this workshop is prohibited, all actions need to be done inside of CLion (and no the integrated terminal doesn't count !)What's need to be done:
* Import the Makefile project
* Configure the Makefile pipeline
* Fix the program
* Build and run
> And you can relax, you now know how to use CLion, but there is more !To improve your skills you can also:
* Look at how the debugger works
* Refactor quickly your code using the `Extract methodes` utility
* Use the GUI to make a make, manage what changes are inside a commit
* Take a first look at the git window
* Setup the Epitech Headers as a .c (and .h) file template
* Setup the `Settings sync` system, to never lose your precious IDE configurationRemember, everyone has a slight different IDE configuration, customize your config to make it suit your needs.
##### The plugins I recommend:
- Atom Material Icons
- Discord Integration
- Material Theme UI#### End result:
This should be what your project look like at the end of this workshop:
*The color highlighting is what we are looking after*![](./doc/file_tree_end_result.png)
> `.direnv` and `.envrc` should be ignored