Here is what I used 10 years ago when I was still doing Java.
Open Source IDE --------------- Netbeans IDE -> Loved the UI Eclipse -> My team at Amazon used this and it was great
Free to Use (Closed-Source) --------------------------- IntelliJ IDEA Community Edition
Open Source Editor ------------------ Visual Studio Code - If you don't care about IDE related features and just want an Editor
I don't have any background in C/C++ so I don't have any recommendations.
Hope this helps!