If you give attention to negative thoughts, they will get stronger and stronger.
What you should do is breaking the vicious cycle by shifting your focus to something positive. You can then reinforce this positive attention until you completely defeat the negative thoughts
Realize that you only hurt yourself with negative thoughts. Don’t let them trick you.
Never say negative words in your conversation
Change the tone of your thoughts from negative to positive. For example, instead of thinking “This problem is too difficult” think “This problem is cool and challenging”.
If you think negatively about someone, remember positive things about that person. Shift your attention to the positive side.
Spiritual peace and calmness is among the most effective ways to overcome negative thoughts.
Read an inspiring book. Spiritual books often do well.
Make yourself comfortable with failure. Failure is the stepping stone to success, so don’t be afraid to fail.
Accept yourself and be comfortable in who you are. You can’t be perfect but neither can anyone else.
Help someone. Shift the focus away from yourself and do good to others.