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 Ctrl+1, select Create class ‘…’ in new file from the list of quick fix proposals and press Enter.

../../_images/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.

../../_images/sv_quick_fix_wizard_non_ex_class.png

The class is created and the new file opens.

../../_images/sv_quick_fix_create_non_ex_class_result.png

Note

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

../../_images/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.