Managing Files

Managing Files

Adding and Removing Files

File Management

Adding Files:

  • At launch: aider file1.py file2.js
  • During session: /add path/to/file.py
  • Creating new files: /add newfile.py

Removing Files:

  • Use /drop filename.py to remove files no longer needed

Viewing Current Files:

  • Use /ls to see all files and which are in the chat

Best Practices:

  • Only add files that need editing for the current task
  • Remove files with /drop when done with them
  • Aider will add context from related files automatically
  • Use /read-only file.py for reference files that shouldn't be edited
5 | 9