.. _Create Class In New File:

Create Class In New File
========================

An error is triggered when trying to extend a non existing class.

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

.. figure:: ../../images/common/sv_quick_fix_create_non_ex_class.png

A wizard will pop up. Fill in the name and the directory path of the new file.

.. figure:: ../../images/common/sv_quick_fix_wizard_non_ex_class.png

The class is created and the new file opens.

.. figure:: ../../images/common/sv_quick_fix_create_non_ex_class_result.png

.. note::

	An include statement is added inside the scope of the child class.

.. figure:: ../../images/common/sv_quick_fix_create_non_ex_class_include_statement.png

.. note::

	If the extended class is parameterizable, the definition is computed accordingly with its value or type parameters.

