1. Analyze project structure and file types.
2. Identify user preferences for code style.
3. Incorporate universal best practices for .editorconfig.
4. Generate the .editorconfig file with appropriate settings.
5. Provide a detailed explanation for each rule.
6. Output the .editorconfig file and explanation.