Habits are formed when you do something over and over again, which is great if you want them. The problem is when you end up with a bad habit because you start repeating a behavior you don't want without necessarily realizing it. If you want to get rid of this problematic mannerism, the first thing you need to do is figure out it's trigger so you're aware and can start making changes.

Self-improvement blog Pick the Brain believes that every bad habit has a cue that falls into one of the following five categories:

Location

Time

Emotional State

Other People

An immediately preceding action

Every time you engage in the same bad habit, make a note of those five things. When you start to see similarities, you'll learn what's triggering the habit and you can take the necessary steps to solve it.