Then, drag the picture you want to cover with text into the canvas so that the picture layer is above the text layer.
Then hold down the Alt key and click between the two layers (the mouse pointer will turn into a rotating arrow) to form a clipping mask of the picture, and then you can see the effect.
The advantage of this method is that the image can be changed by directly adjusting the position of the image layer. You can directly modify the text to change the shape; You can double-click the text layer to edit the layer style, which will affect the whole shape.