Coding Conventions

Coding Conventions

Enforcing Your Team's Standards

Specify Your Coding Standards

Make Aider follow your team's coding conventions:

  1. Create a Conventions File (e.g., CONVENTIONS.md):

    # Coding Conventions
    - Use type hints for all function parameters and returns
    - Prefer async/await for I/O operations
    - Follow PEP 8 for Python code
    - Use Prettier defaults for JavaScript
    
  2. Load at Launch:

    aider --read CONVENTIONS.md your_file.py
    
  3. During Session:

    /read-only CONVENTIONS.md
    
  4. Automatic Loading: In .aider.conf.yml:

    read: CONVENTIONS.md
    

This ensures all code Aider generates follows your specific standards and practices.

6 | 10