You have some good answers here, both of which I agree with and upvoted .
I will confuse you by saying that in industry we alamost always use Eclipse. But, at home, I use Visual Studio Code. Both of them are great with multiple languages (as is NetBeans).
Like @CheddarMonkey (great name) said, "
It can be a major investment in time but, finding the right IDE for you is totally worth trying a few of these options.". You will be using the IDE for years, so try a few and see what suits you best.
Those are all cross platform, but, as you specify Linux, I will add another suggestion.
The classic Kde IDE is Kdevelop, note that it can can also support Python & PHP (Visual Studio code supprts those, plus JS (that I use), plus a whole slew of others).
Take a look at the features.
It is rock solid and well supported, with 1,100+ questions on S.E and its own forum.
Don't KDE? If you Gnome, then read KDevelop? What about gnome? on the Ubuntu forums - and DuckDuckGO for more.
Finally, although there are great suggestions from the others, you might want to consider running each of them through the AlternativeTo site. I'll start you off with free linux alternatives to KDevelop
Btw, since you have such a lot of choices, could you please post (maybe update your question) to let us know which you chose, and why. The more info you give about your decision, the more that you will help oothers who visit this question in future - just as you have been helped :-)