The name of a snippet may not have spaces or other special characters because it must look like a normal function or variable name (for reasons that will become clear in the next paragraph). If the name of the snippet does contain spaces, the button will become inactive without any further explanation. This has been fixed in recent versions of KDevelop (see
KDevelop bug 274299).