How you can build good habits is by recognizing the bad habits you have and look for ways to change them. Once you find those ways try to start becoming aware when you’re doing a bad habit and say no to yourself. You should start with small adjustments and then work your way to bigger habits to change. Then apply that new better habit you found.