I just stumbled upon a question that was asked with the tags c++ and unreal-engine5. This question was closed as "Needs details or clarity" by people who are clearly experienced in C++ but not Unreal Engine. I answered a question before that was exactly like that, but now that the given question is closed already, I can't mark it as a duplicate, as it should be. What is the correct way to handle this?
I thought about messaging a moderator about it, but this usually leads to "stop misusing the message moderator feature" and also, even if they mark it as a duplicate, it deters from the whole "voting to close" feature.
I thought about Reopening the question, just so I can flag it again as a duplicate (if that's even possible).
I resorted to actually comment on the closed question and write this question instead, because it would be interesting to know how to handle situations like this, where questions get closed by people who clearly lack information (thus voting to close for that reason) when a person who is more familiar with the topic actually has an answer that already exists on another question.
For context, this is the question and this is my suspected duplicate.
Edit: To clarify this issue and shed some light into why I believe this is a duplicate and why this cannot be properly judged by someone who is very proficient in C++ but has no experience with Unreal Engine:
tl;dr: The issue is an IDE configuration, because the IDE can't deal with the way Unreal works out of the box. The best thing the user can do is to either change settings in the IDE or resort to other software to mitigate this issue. The questions likely have the same issue and therefore the same solution provided in the question I want to provide as the duplicate close reason.
Long version:
This issue arises with Visual Studio when it tries to interpret the provided code in a proper manner. However, due to the way Unreal is built, part of the code is generated as part of the build process based on the macros that are underlined in the question that I believe is a duplicate. These macros don't do anything really and just confuse the IDE as they are meant as information for a code generator that runs as part of the build process.
In the duplicate question that have an accepted answer written by me, the user had a similar issue that also happens because Visual Studio cannot properly analyze the code. The errors may look different (or may not happen at all) but they all come from Visual Studios IntelliSense trying to understand the code and provide warnings and errors ahead of compiling. However, because it doesn't compile the code properly (it's missing information that is either generated or dismissed during compilation), it likely cannot make sense of the code at all. Therefore, the issue is the same, so the cure is the same.
If the user wants to have a different (and better) experience, they may as well switch to another IDE like JetBrains Rider or install a plugin like Visual Assist that can handle Unreal Engine better. But most people will use Unreal Engine with vanilla Visual Studio first as it is recommended by Epic Games and therefore a lot of people that create a new project will likely see the same issue with the IDE having its default settings.
As SO is a Q&A site, linking to a probably correct duplicate may help people who search for similar issues more than just closing them with "not enough information" which the new user likely cannot provide as they don't know about this unique behavior. This is my stance and therefore I still think it is a duplicate and should be marked as such, however, I added my comment below it and hope this is enough for the person asking the question to work with and help people who find this question.
Regarding a missing MCVE: The authors of both questions state that they created an (empty) Unreal Engine Project, opening the projects code in Visual Studio and not changing anything on it. This is a known issue with Unreal Engine code and reproducible. See Example 1, Example 2, Example 3 and Epics own advice.