Microsoft Visual Studio 2019 Windows 7

So, all you need to do is press B, and then hold down the ALT key to sample any material in the model view, let up when the current material is set as you wish, and paint away as many objects as desired.