In Photoshop, the move tool allows you to select and align multiple layers in a straight line. To do this, follow the following steps:
Use the Move tool to select the layers
Select the aligned option you want from the top area of the Photoshop environment.
Notice that when only one layer is selected, the align option is gray, however, when multiple layers are selected, you can adjust these layers in a straight line (horizontally or vertically).