"Before (not after) 'but' when it is a clause that follows, and no comma when it is a phrase or a single word that follows" usually works. But not always.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.