Editing comes with two problems: It takes time, and it costs money. And copy editing, which piles editing on editing, doubles the problem. Many publications and publishers have reduced or even eliminated editing or copy editing. Chances are excellent that when you write you will be working without a net.
You may think that your writing is so good that you don't need editing; I'm not licensed to treat the delusional. You may think that the internet proves that readers will accept anything, no matter how sloppy; I tell you, you have your reward. But if you think you might try to edit yourself, I can advise you. Sit down.
The first thing is to get something in writing. Under no circumstances should you attempt to write and edit simultaneously. Yes, I know you can rub your stomach and pat your head at the same time--you're a phenomenon. But writing and editing, though allied, involve different skills, different focus. Don't paralyze yourself. When you're done with a text, or think you're done, that's the time to start editing.
You'll need to deal with the small change of editing: punctuation, grammar, usage. Garner's Modern English Usage, now in its fifth edition, is authoritative. If Garner's appears forbidding, Mignon Fogarty's Grammar Girl posts are conversational and sensible. And [cough] there is always my Bad Advice, on rubbish you were taught about grammar and usage. Be cautious of the claims of sites like Grammarly. Every professional editor I have seen opine on Grammarly says that it will suggest some good changes and a great many inadvisable ones.
You'll think me an old fogy (and I am one) when I tell you that factual accuracy will benefit your text. One useful task is to mark each statement of fact in your text, making sure of where you found it and how you know it to be true. If you are casual about the facts or, worse, deliberately inaccurate, you are simply giving some other writer the opportunity to expose you. And let me remind you here that you have known the basic ethics of writing since you were in elementary school: Don't copy. Don't tell lies.
Getting analytical, you will examine how your text is put together, its structure and organization. If you have not read my previous post "Secrets of editing revealed," now would be an excellent time to put that set of questions to your work. It might benefit you to make a rough outline of your text: the main point and the subsidiary points. Are like things together? If there is a chronology, is it in order? Are the points in an order that the reader will be able to follow?
Then smoke 'em if you got 'em. Take a break. If you can put it aside for a day, you will return to it for an unpleasant discovery that it was not as good as you thought it was. If you can't spare that much time, step away from it for a while. Take a walk. Drink a cup of tea or a martini. Talk to the cat. Then go back and fix what you now see needs to be fixed.
Read the thing aloud. When you have to give that kind of attention to every word, you will spot typos that your eye slid over. Also, when you read aloud, infelicities such as clotted syntax and unconscious repetition of words reveal themselves. Reading it aloud allows you to determine whether it sounds like something written by a human being.
Spellcheck is the last thing, but be cautious. It will highlight typographical errors but pass over the wrong homonym undetected. And be careful about the auto-replace function, remembering the classic example of the website that wanted the word "gay" replaced with "homosexual" in all instances and wound up changing an Associated Press story about Tyson Gay to identify the sprinter as Tyson Homosexual.
Then, once it's gone, prepare yourself to take correction graciously. You will have done your best, but something will be wrong, likely minor but still embarrassing. I have no editor for this blog. Some people point out my errors in a polite note; others proclaim them publicly with glee. I accept them all, with thanks. So should you.