Use relative file path as variable in copyright profile template

According to this page (Copyright Profiles | IntelliJ IDEA Documentation ( is possbile to set some variable in the copyright profile.

One variable is "$file.pathName", but this will print the absolute path of the file. Is possible to print the relative path instead (relative to project folder e.g. sources/modules/mymodule.cpp)?

1 comment
$file.qualifiedClassName.replaceAll("[A-Za-z0-9]+\Z", "")$file.fileName

Please sign in to leave a comment.