.. _Declare Event:

Declare Event
=============

An error is triggered when using an event which does not exist.

Place the editor cursor on the error's line and press :kbd:`Ctrl+1`, select **Declare event ...** from the list of quick fix proposals and press :kbd:`Enter`.

.. figure:: ../../images/common/e_quick_fix_declare_event_list.png
	:align: center




The event is declared in the appropriate scope.

.. figure:: ../../images/common/e_quick_fix_declare_event_after.png
	:align: center




