In Photoshop CC, you can right click on a layer, and in the context menu, there will be an option, "Quick Export as PNG". This will make a PNG out of the current layer, but it has an issue: The new layer it makes will be the size of the document (way bigger then the image). Is there anyway to have Photoshop crop the new PNG to the exact size of the layer?
Well you could reopen the png and apply a trim on it.
You can aslo create following in a action:
Now you have a one click (or key) solution to a save dialog with a trimmed layer.