I was watching a video tutorial and the instructor seemed to switch the colour of a layer from white to black with a shortcut, since his cursor did not leave the layer thumbnail section, per below...

enter image description here

Does anyone know which shortcut that would be?

Thanks in advance.

  • Option/Alt-Delete = Fill with foreground color

  • Command/Ctrl-Delete = Fill with background color

  • Command/Ctrl-i = Invert

Chances are the instructor was using one of these shortcuts.

  • Another one could have been Shift-x to switch foreground color and background color around. Very usefull in masks – leugim Aug 24 '13 at 18:15
  • 3
    You don't need shift. X will toggle the foreground/background color, but that doesn't change the actual image. The shortcuts I provided alter the image itself, this is why I didn't mention the X shortcut. Shift-X applies a gradient to a shape layer, since the OP mentions flat colors I didn't think Shift-X was appropriate. – Scott Aug 24 '13 at 18:40
  • Yes, X alone works. But I thought it could have been used in combination with "Fill with foreground/background color". I thought it useful extra information. I could have guessed you already evaluated including this shortcut and decided against it. Shift-X does not behave as you describe it in my photoshop cs6 (default shortcuts). There actually does not seem to be a Shift-X shortcut by default. – leugim Aug 24 '13 at 21:15
  • 1
    In Photoshop CC Shift-X fills vector layers with the default gradient (and toggles colors). This may be a bug, but that's how it behaves here. And your'e correct Shift-X does nothing in Photoshop CS6. – Scott Aug 24 '13 at 21:23
  • Also very useful: if you add the Shift key to the Fill shortcuts mentioned above, only the non-transparent pixels are filled with the respective foreground/background color. – George C Aug 17 '18 at 20:57

Also you can toggle your background and foreground color with D and then use the fill shortcuts given above.

  • 2
    On Mac + Photoshop CS6, the keyboard shortcut to toggle between foreground and background color is "X" – rmbianchi Feb 16 '17 at 21:55
  • 1
    D sets foreground and background colour to black and white respectively, but does not switch. – Vincent Nov 16 '17 at 10:57

Command Shift 5 then to go back command shift 2 - to check values - this is what you mean - OBVIOUSLY not invert colours....

  • Command-Shift-5 has no function. If you mean Command-5, all that does is switch to the Blue channel in an RGB document or Yellow channel in a CMYK file. Then Command-2 (not command-shift-2) will switch back to the composite channel. Nothing you've posted actually does anything to the file. It merely changes what you see but does not alter any pixels whatsoever. – Scott Oct 7 '14 at 0:23

Hit "D" for background color and "X" for foreground color.

  • This is wrong: D reverts to black foreground / white background and X swaps background and foreground colours. Neither of them would change the colour of the layer. – Westside Nov 7 '16 at 11:49

protected by JohnB Nov 16 '17 at 16:03

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.