Create new C# script makes a file without extension

Hello everyone!

I am having quite a strange behavior lately. For some reason, when I crate a new c# script in the editor using the contextual menu it creates a file without extension.

Unity still uses the appropriate template and just by adding the .cs it gets recognized as a script. However, this is not the expected behavior and is quite annoying. Do you have any ideas about what may be causing this?

Never heard of this. Are you sure it‘s not merely hiding the extension as Explorer does by default?

Try replicating the issue in an empty project using the same editor version. If it does not happen there it‘s something in your project, likely an editor script (asset importer etc).

I never found out what was the source of the problem. However, reinstalling the editor solved the problem.

I missed a feature to check for the integrity of the files, rather than reinstalling the whole Unity.