.. _Rename in File:

Rename in File
==============

You can easily rename a variable, signal, method, etc. within the current file.

Place the editor cursor on its name, press :kbd:`Ctrl+1`, select **Rename ... in file** from the list of quick assist proposals and press  :kbd:`Enter`.

.. figure:: ../../images/common/sv_quick_assist_rename_in_file_list.png




Type in the new name and press  :kbd:`Enter` again when done.

.. figure:: ../../images/common/sv_quick_assist_rename_in_file_after.png




.. tip::

	This is a lightweight :ref:`Rename Refactoring` which you should use in contexts where the renamed element is local to the file: local parameters, method argument names, local variables, signals of a module, etc.

.. tip::

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

.. figure:: ../../images/common/sv_quick_assist_rename_in_file_menu.png




