# Code Faster and Cleaner with AI Assistants How to code faster and cleaner using AI assistants? Simply let them know your requirements as defined in Linty — they will then generate and edit code that strictly follows your coding standards. ## Generate Code That Complies with Your Coding Standards Here's a short screencast showing how to use AI assistants to generate code that fully respects Linty coding standards.
In VS Code, let's ask an AI assistant to write a simple adder in VHDL. Basic prompt: `Code an adder in VHDL`. Without giving it any information about our requirements, the generated code works functionally but doesn't fully follow our coding standards. Now let's provide the AI assistant with our Linty requirements and see the difference. 1. Generate instructions for AI assistants. They will be generated from the quality profiles associated to your project. 2. Create a file named `.github/copilot-instructions.md` in your project repository and paste the content of the exported markdown file into it. 3. Ask the AI assistant again to code an adder in VHDL using the same prompt. You'll see that the generated code now fully complies with our coding standards — and it will continue to respect them in any future edits as well. 4. Finally, commit and push the `.github/copilot-instructions.md` file to your Git repository so your whole team can benefit from it. ## Fix Existing Code to Comply with Your Coding Standards In VS Code, Linty displays all the necessary information about violations directly in the editor (non-compliance message, rule description, etc.). AI assistants can use these hints to help you automatically fix the issues — often with just one click.