domains / / zed-industries/zed
Maintain consistent naming
Ensure naming follows consistent patterns throughout the codebase in both style and structure: 1. Use agreed-upon case style for identifiers (e.g., snake_case for functions):
Ensure naming follows consistent patterns throughout the codebase in both style and structure:
- Use agreed-upon case style for identifiers (e.g., snake_case for functions):
- {{# if (hasTool 'grep') }} + {{# if (has_tool 'grep') }} - Maintain consistent ordering in hierarchical names, with namespaces coming first:
- export additional-language-server-workspace-configuration: func(...) + export language-server-additional-workspace-configuration: func(...) - For selectors and hierarchical identifiers, order components from less specific to more specific:
- (emphasis) @markup.emphasis + (emphasis) @emphasis.markup
This consistency improves code readability, makes the codebase more predictable, and reduces cognitive load when writing or reviewing code.