In Photoshop, if you choose View > Show > Layer Edges, a blue border will appear around the currently-selected layer. Is there a way to make the marquee tool select that exact area? I know I can command-click on the layer thumbnail to select all visible pixels in the layer, but is there a way to quickly get a rectangular selection that matches the layer boundaries, or do I need to manually drag the rectangular marquee tool to match the layer boundary that Photoshop is showing me?
Depending on what you need to do, I do this very often to copy a layer to a new document cropped to bounding pixels:
There is not a "simple" way to do this out of the box, but if you want to select the area to copy you can make an action script with:
I created an action for you with these steps. It can be downloaded from here:
(remember to perform virus check on files you receive by from strangers such as a me).