Generate c# enum classes through a simple API. See example at GenerateCodeExample/Program.cs
To use this in Unity Editor: Copy classes GenerateCode and GenerateCodeWindow to an Editor folder in your Unity project. You should now have a new menu option in Unity Editor at Window -> Generate Code -> Enum Generator You can generate enum classes for the layers and tags in your Unity project.