Use relative file path as variable in copyright profile template
According to this page (Copyright Profiles | IntelliJ IDEA Documentation (jetbrains.com)) 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)?
Please sign in to leave a comment.
my current workaround: $file.pathName.substring($file.pathName.indexOf($module.name)+$module.name.length()+1)
Hi, we have a feature request to add built-in variable for this. Please see IJPL-27572, and consider following the ticket to receive updates on any future progress.