Something that is a little frustrating with
Copy Shape Attributes and
Paste Shape Attributes is that you can't assign a keyboard shortcut to it. When trying, I was unable to make it work. I have posted what I could get to work as an answer.
How can I create custom keyboard shortcuts for the
Copy Shape Attributes &
Paste Shape Attributes options in Adobe Photoshop?
To do it manually, you need to right click on a shape layer in the layers panel.