In this article, I will show you how to setup your working environment for C++ Projects. Let’s get started:
- Create a folder named:
HOME_DEV
, ideally in :C:/
for Windows~
for Linux/Users/${YOUR_NAME}/
for Mac
Examples:
- Windows: `C:/HOME_DEV/`
- Linux: `~/HOME_DEV`
- Mac: `/Users/${YOUR_NAME}/HOME_DEV`
💡 CLI: Run mkdir "/Users/${USER}/HOME_DEV"
to create the folder.
Let’s refer to the path to the folder you have just created as $HOME_DEV
- Create the
$HOME_DEV
environment variable that will store the path of the folder.- Windows
- Type “Environnement” in Windows search bar.
- In System Variables, add a variable $HOME_DEV with the value as
C:/HOME_DEV/
:
- Unix
Add to your.bash_profile
( or.zshrc
) file the line below[...] export HOME_DEV="/Users/${USER}/HOME_DEV" [...]
- Windows
Download and unzip the following archive. Then Copy/paste the content of the HOME_DEV
folder in your $HOME_DEV
folder.
.📂 $HOME_DEV
├── Workspaces
│ ├── Project C++ 1
│ ├── Project C++ 2
│ │ ├── Application-A
│ │ ├── Application-B
│ │ └── Code Stuff
│ └── Storage
├── Data
│ ├── Images
│ ├── video
│ ├── Binary
│ ├── ...
└── Packages
Now you can go ahead and read our article on Dev tools we used for C++ projects.
[…] 🖥️ Set up your dev workspace C++ […]