Prism
Explorer
The main benefit of hiding during combat is so you are difficult to target since the attacker doesn't know where you are, and even if they do but can't see you they attack with disadvantage. Most of the time you don't need to hide if you are looking to gain advantage on your attack rolls. You need darkness, invisibility or heavy obscurement while still ensuring that you can see your opponent. Hiding itself doesn't generate any of these conditions. You can't hide behind cover as your opponent can still see you unless its full cover and then you can't see your opponent either.
Wood elves and lightfoot halflings have more places to hide during combat. In addition some DMs might allow you to approach or shoot a distracted opponent without maintaining the cover or obscurent assuming you have until that point been hidden from them. I wouldn't assume that works though. At our table a rogue nipping behind a wall one round and then popping out to try and shoot from hidden the next wouldn't work. As soon as they move out to attack they are visible unless the opponent is otherwise distracted (DM call).
So in answer to the OP I would say hiding in combat is generally not worth it unless you want to escape, avoid being attacked (although a solid barrier is usually an easier option there) or you have something specific in mind like sneaking around the other side of the combat to take out an enemy (requires pretty ideal natural conditions or invisibility)
Wood elves and lightfoot halflings have more places to hide during combat. In addition some DMs might allow you to approach or shoot a distracted opponent without maintaining the cover or obscurent assuming you have until that point been hidden from them. I wouldn't assume that works though. At our table a rogue nipping behind a wall one round and then popping out to try and shoot from hidden the next wouldn't work. As soon as they move out to attack they are visible unless the opponent is otherwise distracted (DM call).
So in answer to the OP I would say hiding in combat is generally not worth it unless you want to escape, avoid being attacked (although a solid barrier is usually an easier option there) or you have something specific in mind like sneaking around the other side of the combat to take out an enemy (requires pretty ideal natural conditions or invisibility)