To create a barcode in Photoshop, first open a new A4 size project and use the Single Row Marquee Tool to make a small center rectangle. Then add the maximum amount of Gaussian monochromatic noise by selecting the noise filter option and dragging the amount bar. Finally, create a line across the page, transform it, and add random numbers in a text box to complete the basic barcode.