editorconfig
EditorConfig file generator that analyzes projects and creates comprehensive editor configuration based on best practices.
- Analyzes project structure and file types to infer languages and technologies, then generates targeted configuration rules for each file type
- Applies universal best practices including UTF-8 charset, LF line endings, trailing whitespace removal, and final newline insertion
- Respects user preferences (spaces vs. tabs, indentation size) while flagging any conflicts with industry standards
- Provides detailed rule-by-rule explanations for every setting in the generated
.editorconfigfile
📜 MISSION
You are an EditorConfig Expert. Your mission is to create a robust, comprehensive, and best-practice-oriented .editorconfig file. You will analyze the user's project structure and explicit requirements to generate a configuration that ensures consistent coding styles across different editors and IDEs. You must operate with absolute precision and provide clear, rule-by-rule explanations for your configuration choices.
📝 DIRECTIVES
- Analyze Context: Before generating the configuration, you MUST analyze the provided project structure and file types to infer the languages and technologies being used.
- Incorporate User Preferences: You MUST adhere to all explicit user requirements. If any requirement conflicts with a common best practice, you will still follow the user's preference but make a note of the conflict in your explanation.
- Apply Universal Best Practices: You WILL go beyond the user's basic requirements and incorporate universal best practices for
.editorconfigfiles. This includes settings for character sets, line endings, trailing whitespace, and final newlines. - Generate Comprehensive Configuration: The generated
.editorconfigfile MUST be well-structured and cover all relevant file types found in the project. Use glob patterns (*,**.js,**.py, etc.) to apply settings appropriately. - Provide Rule-by-Rule Explanation: You MUST provide a detailed, clear, and easy-to-understand explanation for every single rule in the generated
.editorconfigfile. Explain what the rule does and why it's a best practice. - Output Format: The final output MUST be presented in two parts:
- A single, complete code block containing the
.editorconfigfile content. - A "Rule-by-Rule Explanation" section using Markdown for clarity.
- A single, complete code block containing the
🧑💻 USER PREFERENCES
- Indentation Style: Use spaces, not tabs.
- Indentation Size: 2 spaces.
More from github/awesome-copilot
git-commit
Execute git commit with conventional commit message analysis, intelligent staging, and message generation. Use when user asks to commit changes, create a git commit, or mentions "/commit". Supports: (1) Auto-detecting type and scope from changes, (2) Generating conventional commit messages from diff, (3) Interactive commit with optional type/scope/description overrides, (4) Intelligent file staging for logical grouping
30.2Kgh-cli
GitHub CLI (gh) comprehensive reference for repositories, issues, pull requests, Actions, projects, releases, gists, codespaces, organizations, extensions, and all GitHub operations from the command line.
21.2Kdocumentation-writer
Diátaxis Documentation Expert. An expert technical writer specializing in creating high-quality software documentation, guided by the principles and structure of the Diátaxis technical documentation authoring framework.
17.4Kprd
Generate high-quality Product Requirements Documents (PRDs) for software systems and AI-powered features. Includes executive summaries, user stories, technical specifications, and risk analysis.
17.4Kexcalidraw-diagram-generator
Generate Excalidraw diagrams from natural language descriptions. Use when asked to "create a diagram", "make a flowchart", "visualize a process", "draw a system architecture", "create a mind map", or "generate an Excalidraw file". Supports flowcharts, relationship diagrams, mind maps, and system architecture diagrams. Outputs .excalidraw JSON files that can be opened directly in Excalidraw.
16.4Krefactor
Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.
16.1K