You should read some of the editing guidelines in the Help Center. But there are some aspects of editing that aren't discussed much in the help center that have been clarified on meta. Keep these things in mind while editing.
Don't edit spam posts
When you see a spam post, flag it. This brings it to the attention of the moderators. If you edit it, it is harder for the moderators to see that it was spam.
Make your edits as complete as possible
According to the editing guidelines in the Help Center:
Edits are expected to be substantial and to leave the post better than you found it.
Please refrain from making multiple small edits to the same post, especially for suggested edits. Instead, fix everything you can all at once. Additionally, try to improve every aspect of the post that you can. Please try to improve all of the following in a single, comprehensive edit:
- Spelling/grammar
- Post title and tags
- Formatting
- Other improvements
Use code markdown
for code
You can show that something is code by putting it in code markdown
. This can be done by surrounding it by backticks ( ` usually the same key as the tilde ~), or by indenting it by four spaces.
Code markdown
shows that something is code. You can also use it for filenames, but you should not use it for the names of products, protocols, or file formats.
Excessive use of backticks may lead to lyme disease; please use them sparingly.
Don't use Stack Snippets for code that isn't client-side HTML/CSS/JS
Stack Snippets are for directly browser-runnable code, nothing else. At present, that's a pretty limited set. For everything else, stick with the normal code formatting. If you see a post that wrongly uses Snippet markdown, see if there's anything else to fix to make the edit worthwhile.
Don't edit code in questions unless you know exactly what you're doing
It's OK to put code in code markdown
but, apart from that, you should be very careful when editing code — especially code in questions. If you change the code in a question, you may accidentally remove the bug that causes the problem.
Also, keep in mind that in some programming languages, the indentation has meaning. For example, in Python and Haskell. So don't modify the code unless you know exactly what you are doing.
If you do edit code, please make sure you don't change the author's intent. It's often better just to leave a comment asking for clarifications for perceived typos or other issues in code. If you have less than 2000 rep, please leave a very clear edit comment for why you are changing code.
Correct the typography
Many things have an official typography. For example, the name of the Apache web server is "Apache". If you see someone spell it as "apache", correct it. Similarly, "HTML" is all capitals, but "jQuery" only has the second letter in capitals.
When in doubt, use your favorite search engine.
Remove "l33t sp33k"
Stack Overflow is a site for professionals (and enthusiast amateurs). It is not professional to use l33t sp33k.
So if you see l33t sp33k, or txt msg spk, replace it with proper English.
The first person personal pronoun in English is "I", not "i".
The second person personal pronoun in English is "you", not "u".
So, replace "u" and "i" with "you" and "I".
Use emphasis sparingly
You can put things in boldface or italics, but do this only when it is really necessary. Emphasis is used to draw extra attention to the reader. If almost everything demands extra attention, then nothing will get extra attention.
As a rule of thumb, before putting something in boldface or italics, ask yourself: if I could put only one thing in this post in boldface or italics, would it be this? If the answer is no, then don't.
Remove 'Hi' and 'Thank you' - but only while you're at it.
'Hi', 'Thank you', 'Hope this helps', 'Thanks in advance' — these things are considered noise on Stack Overflow.
However, if you have less than 2000 reputation, your edits must be reviewed. So your edit will take your time and that of at least 3 reviewers. This means it is hardly ever worth the effort to remove things like "Hi" and "Thank you".
But if you're editing already — remove this noise as well.
Write a relevant Edit Summary
Before you have full editing privileges you're forced to write an edit summary to explain your edit. These are very important as they add context that reviews often lack. Sometimes an edit can seem redundant to a reviewer until they notice that you've left a comment explaining why it matters to change the small detail or replace one link with another. Even with full editing privileges, this is valid context for anyone who checks the history of a question's edits and needs to understand what motivated your edit.
Don't go on editing sprees
Keep in mind that if you have less than 2,000 rep, all of your edits need to be approved in the suggested edit review queue. Don't waste reviewers' time by searching for and correcting simple errors en masse.
If you feel the need to search out and correct a simple issue on several posts, please be sure to correct other issues while you're at it.