.. _AI Assistant Auto-correct Failure:

AI Assistant Auto-correct Failure
---------------------------------

A quick and easy way to fix Verissimo failures is using the AI Assistant.

Place the editor cursor on the failure line (signaled by the marker) and press :kbd:`Ctrl+1`, select **Fix ... failure using DVT AI Assistant** from the list of proposals and press  :kbd:`Enter`.

.. figure:: ../../images/autocorrect-verissimo-quick-fix.png
	
You can also fix failures directly from the Verissimo GUI report in DVT by right clicking a failure and select **Fix Failures using DVT AI Assistant** from the list.

.. figure:: ../../images/autocorrect-verissimo-report.png
	
Or select multiple failures holding :kbd:`Ctrl` and then right click on one of them.

.. figure:: ../../images/autocorrect-verissimo-report-multiple.png
	
Or right click a check to fix all the failures from that check.

.. figure:: ../../images/autocorrect-verissimo-report-check.png
	
The fix proposal will show up in a pop-up dialog.
    
For VSCode, place the editor cursor on the failure line (signaled by the marker) and press :kbd:`Ctrl+.`, then select **Fix ... failure using DVT AI Assistant** from the list of proposals and press  :kbd:`Enter`.

.. figure:: ../../images/autocorrect-verissimo-vscode.png

    
.. note::

    -  To customize the Verissimo Auto-correct prompt, run the **DVT AI: Create New Verissimo Auto-correct Blueprint** command and modify the generated blueprint. The newly added blueprints will be accesible from within the proposals list alongside the builtin one.
        
    
