Format Multiple Files

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

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

../../_images/format_multiple_files_image.png

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.

../../_images/format_multiple_files_console_image.png

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 Window ‣ Preferences ‣ General ‣ Keys, search for the Format Project and choose a convenient key binding.