To copy and paste CSS code from a layer, right click on the layer and select the "Copy CSS" option from the menu that appears. This will copy the CSS code to our clipboard so we can insert it into our favorite code editor.