
Editorconfig
- 10.6k installs
- 37.1k repo stars
- Updated July 28, 2026
- github/awesome-copilot
A complete, best-practice .editorconfig file with detailed explanations for each rule, tailored to project context and user preferences.
About
This skill generates a comprehensive .editorconfig file tailored to a project's structure and user preferences. It analyzes project context to infer languages and technologies, then produces a well-structured configuration covering relevant file types with detailed rule-by-rule explanations. The workflow applies universal best practices like UTF-8 encoding, LF line endings, and trailing whitespace handling, while respecting user-specified preferences such as indentation style and size. Developers use this to ensure consistent coding styles across different editors and IDEs without manual configuration.
- Analyzes project structure and file types to infer languages and technologies
- Generates glob patterns for language-specific .editorconfig rules
- Applies universal best practices: UTF-8, LF line endings, trailing whitespace, final newlines
- Provides rule-by-rule explanations for every configuration setting
- Respects user preferences while noting conflicts with best practices
Editorconfig by the numbers
- 10,645 all-time installs (skills.sh)
- +122 installs in the week ending Jul 28, 2026 (Skillselion tracking)
- Ranked #41 of 1,901 Documentation skills by installs in the Skillselion catalog
- Security screen: MEDIUM risk (skills.sh audit)
- Data as of Jul 28, 2026 (Skillselion catalog sync)
editorconfig capabilities & compatibility
- Capabilities
- analyze project file structure · generate glob based .editorconfig rules · apply language specific configuration · provide explanations for each rule
- Use cases
- documentation · devops
- Platforms
- macOS · Windows · Linux
- Runs
- Runs locally
- Pricing
- Free
npx skills add https://github.com/github/awesome-copilot --skill editorconfigAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 10.6k |
|---|---|
| repo stars | ★ 37.1k |
| Security audit | 3 / 3 scanners passed |
| Last updated | July 28, 2026 |
| Repository | github/awesome-copilot ↗ |
What it does
Generate a consistent .editorconfig file for a project to enforce coding style rules across editors and IDEs.
Who is it for?
Enforcing consistent coding styles across teams using multiple editors/IDEs; establishing baseline editor configuration standards in new or existing projects.
Skip if: Real-time code formatting during development; replacing linters or formatters like Prettier or ESLint.
When should I use this skill?
Setting up a new project; onboarding team members; standardizing editor configuration across a codebase.
What you get
Developers get a ready-to-use .editorconfig file that enforces consistent indentation, line endings, charset, and whitespace rules across all editors.
- .editorconfig file content
- Rule-by-rule explanation for each setting
By the numbers
- Supports universal settings for all files plus language-specific overrides via glob patterns
- Covers standard best practices: UTF-8, LF line endings, trailing whitespace trimming, final newline insertion
Files
📜 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
1. Analyze Context: Before generating the configuration, you MUST analyze the provided project structure and file types to infer the languages and technologies being used. 2. 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. 3. Apply Universal Best Practices: You WILL go beyond the user's basic requirements and incorporate universal best practices for .editorconfig files. This includes settings for character sets, line endings, trailing whitespace, and final newlines. 4. Generate Comprehensive Configuration: The generated .editorconfig file MUST be well-structured and cover all relevant file types found in the project. Use glob patterns (*, **.js, **.py, etc.) to apply settings appropriately. 5. Provide Rule-by-Rule Explanation: You MUST provide a detailed, clear, and easy-to-understand explanation for every single rule in the generated .editorconfig file. Explain what the rule does and why it's a best practice. 6. 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.
🧑💻 USER PREFERENCES
- Indentation Style: Use spaces, not tabs.
- Indentation Size: 2 spaces.
🚀 EXECUTION
Begin by acknowledging the user's preferences. Then, proceed directly to generating the .editorconfig file and the detailed explanation as per the specified output format.
Example Output Structure:
Here is the .editorconfig file tailored to your project:
# .editorconfig
# Top-most EditorConfig file
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
trim_trailing_whitespace = falseRule-by-Rule Explanation
root = true: This is a best practice that stops the EditorConfig search in the current directory. Without it, EditorConfig would continue searching parent directories, which could lead to unexpected behavior.[*]: This is a universal glob pattern that applies the following rules to ALL files in the project.indent_style = space: As requested, this sets the indentation to use spaces instead of tabs.indent_size = 2: As requested, this sets the indentation size to 2 spaces.end_of_line = lf: This standardizes line endings to Line Feed (LF), which is the standard for macOS, Linux, and modern Windows (WSL), preventing issues with version control systems.charset = utf-8: This sets the character encoding to UTF-8, the universal standard, ensuring files can be read and written correctly across all systems.trim_trailing_whitespace = true: This automatically removes any whitespace characters at the end of lines, which keeps the code clean and avoids unnecessary diffs in version control.insert_final_newline = true: This ensures that every file ends with a single newline character, a POSIX standard that prevents certain scripting and concatenation issues.[*.md]: This glob pattern applies specific rules only to Markdown files.trim_trailing_whitespace = false: This overrides the universal setting for Markdown files. It's disabled because trailing whitespace can be significant in Markdown (e.g., for creating hard line breaks).
Related skills
How it compares
Use editorconfig for editor-level baseline rules; add Prettier or language formatters when you need AST-aware reformatting beyond whitespace defaults.
FAQ
What is .editorconfig and why do I need it?
.editorconfig is a file format that defines coding styles (indentation, line endings, charset) across different editors and IDEs. It ensures consistency without requiring each developer to manually configure their tools.
Does .editorconfig replace linters or formatters?
No. .editorconfig handles basic editor settings like indentation and line endings. Linters/formatters (Prettier, ESLint) enforce deeper code quality rules. Both work well together.
How does the skill determine language-specific rules?
The skill analyzes your project structure and file types (e.g., .js, .py, .md) to infer languages used, then applies appropriate glob patterns and settings for each language.
Is Editorconfig safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.