Añadir una plantilla de encabezado de licencia para código C++

Especifica un archivo que contenga un encabezado de licencia para C++ en Preferences > C++ > File Naming > License template.

Pestaña «Nombres de archivos» en las preferencias de C++

El archivo de licencia puede contener marcadores de posición especiales entre comillas de apertura y cierre ( %% ) que se sustituyen al generar un nuevo archivo:

  1. %YEAR%: Año
  2. %MONTH%: Mes
  3. %DAY%: Día del mes
  4. %DATE%: Fecha
  5. %USER%: Nombre de usuario
  6. %FILENAME%: Nombre del archivo
  7. %CLASS%: Nombre de la clase (si procede)
  8. %$VARIABLE%: Contenido de la variable de entorno VARIABLE.

Además, los marcadores de posición con el formato %{..} se sustituyen por el valor de la variable Qt Creator correspondiente.

Véase también «Uso devariables de 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.