-
-
Notifications
You must be signed in to change notification settings - Fork 36
Reference Source Files
NCMcClure edited this page Feb 26, 2025
·
1 revision
Reference source files provide essential context to improve translation quality by showing the LLM your project's coding patterns and conventions.
-
Under
Code Generation
, locateReference Source Files
-
Click the + button to add .h/.cpp files using a file browser dialog
-
Select relevant source files that provide context for your translations
- Base classes being extended
- Interfaces being implemented
- Common utility functions
- Shared type definitions
- Related system implementations
- Similar pattern examples
- Project-specific conventions
- Custom macros or helpers
- Include minimal, focused examples
- Prioritize clean, well-documented code
- Select files with similar functionality
- Include project-specific patterns
Note
Quality over quantity - choose the most relevant files that demonstrate your desired coding patterns or a specific class you want the translated codes to be integrated into.
- Regularly update reference files
- Remove outdated examples
- Add new patterns as needed
- Monitor token usage impact