Many questions can take a lot of editing love, and it's great if you can understand the question and essentially delete it all and replace it with a clear problem statement and MCVE. This usually works if you know what you're doing and have 2k rep. But when suggesting an edit, often edits that don't change much of the technical details will have a higher chance of getting through the system. You should be clear in the edit summary if you moved code from an external linkthe OP posted elsewhere into the question, but only do so it doesn't seem like as big ofif there isn't a changeconflict with CC-BY-SA. And make sure the title looks good, since it's the first (and for lazy reviewers, the last) thing reviewers see. If you look like you know what you're doing, the edit will probably be approved. But make sure you know what you're doing and don't just replace a question (however poorly written) with your own.
These problems are so easy to see and correct that suggested edits in the queue are expected to fix all of these. It's even better if you go on to fix larger issues like inlining external code when it doesn't conflict with CC-BY-SA, restructuring questions so that they're easy to follow (background → code → problem overview → failure of attempted solutions → core question), clarifying unclear parts, adding information from comments…comments, etc.
Explain what you're doing to reviewers and the OP. Make sure your editing never makes people wonder what you were smoking thinking when you suggested your edit. This is especially important if you think others may disagree with your edit. (improved formatting
is not a valid edit summary)
In general, just try to be as clear as you can in communicating what you're doing and don't make edit reviewers work too hard and you'll be fine. You can try things to see if they're okOK before you have full editing privileges because the review queue is there to filter out bad edits. You can, in a way, do more without full editing privileges because of the safety net system, but you must understand the limitations of going through the edit queue.