Rename Material in Windows and Assign Material to a mesh

How it can be changed material name?

And how can be assign to a prefab? I can to use drag & drop, but now i have materials in a separate folder, so i can’t do it?

Self answer. In windows just click on name and wait for a second.I think that in mac must be equal for all OS. (i dont use mac).