Use the paintbrush cursor to highlight the text you want to apply the same formatting to in your document.
This button has a paintbrush icon next to it. This typically appears in the upper left corner of your screen.
How to use format painter in google docs