The installation should go smoothly if you follow these steps carefully and in order.
If you already have Eclipse for Java development installed on your system, just skip step 2 below. The current version of Eclipse requires Java 11 or later; if you have that already installed, skip step 1 below. If you have an older version of Java, you should probably remove it and follow the steps below to install a newer version.
You need to have the C++ compiler, debugger, and make installed before you install the Eclipse C++ plugin CDT, as CDT looks for them and configures itself with their locations when it is installed. Be certain you complete step 2 before you begin step 4.
Each video opens in a new window or tab, so at the conclusion of each video, just close that window or tab to return to this page.
These instructions use the current versions of Apple's Command Line Tools, Eclipse, and CDT when these videos were created. The steps to install subsequent versions should be similar.