Додавання шаблону заголовка ліцензії для коду C++

Вкажіть файл із заголовком ліцензії для C++ у розділі « Preferences » > « C++ » > « File Naming » > « License template ».

Вкладка «Іменування файлів» у налаштуваннях C++

Файл ліцензії може містити спеціальні заповнювачі, взяті в лапки %%, які замінюються під час генерації нового файлу:

  1. %YEAR%: Рік
  2. %MONTH%: Місяць
  3. %DAY%: День місяця
  4. %DATE%: Дата
  5. %USER%: Ім'я користувача
  6. %FILENAME%: Ім'я файлу
  7. %CLASS%: Назва класу (якщо є)
  8. %$VARIABLE%: Значення змінної середовища VARIABLE.

Крім того, заповнювачі у вигляді %{..} замінюються значенням відповідної змінної Qt Creator.

Див. також «Використання змінних Qt Creator ».

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.