You can easily move a code fragment to a separate new file.

Select a block of code and press :kbd:`Ctrl+1`, select **Move selection to new file...** from the list of quick assist proposals and press  :kbd:`Enter`.

.. figure:: ../../images/common/sv_quick_assist_move_selection.png



Fill in the name of the new file.

.. figure:: ../../images/common/sv_quick_assist_move_selection_wizard.png




.. note::

	The initial selection is replaced by an \`include to the new file

.. figure:: ../../images/common/sv_quick_assist_move_selection_result.png




.. tip::

	You can also :kbd:`Right-Click` in the editor and go to **Refactor** > **Move Selection to New File**.

.. figure:: ../../images/common/sv_quick_assist_move_selection_menu.png




