PSA: Telling people to “RTFM” is not helpful and just discourages newbies.
If you can’t restrain yourself, then don’t reply. The proper way to handle it is to provide an answer, perhaps even references, then KINDLY advise them on how to find the answers theirself in the future.
Then politely tell them that.