.. _Format Multiple Files:

Format Multiple Files
=====================

.. rst-class:: lead

In order to format multiple files at once, use the :guilabel:`Format Source Files` action.

Select the files or directories you want to format in the :guilabel:`Project Explorer`, right click and choose :guilabel:`Format Source Files`.

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




The selected directories are scanned recursively for source code files.
Source code files are:

-  files which were compiled by the DVT builder (e Language, SystemVerilog, VHDL, etc)
-  files which were not compiled by DVT but have an extension which is mapped to a content type which in turn is mapped to one of the enabled DVT project natures

.. note::

	If any of the affected files are read-only, you will be prompted to make them writable.

.. tip::

	Remaining read-only files will be skipped. A list of all skipped files can be found in the **Format Multiple Files Console**.

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


.. note::

	You can at any time configure a keyboard shortcut to easily format source files from an entire project.

To do so, simply go to :menuselection:`Window --> Preferences --> General --> Keys`, search for the :guilabel:`Format Project` and choose a convenient key binding.
