There is no way, because you recognize the thoughts only after they have already come. Isn’t it? They come and then you recognize it.
So when you recognize it, get busy. If you simply sit, you will keep thinking a lot. If you keep acting, you will feel that you are more with the flow.