Printing in IntelliJ IDEA - how to print file name without full path?

Hello,

I need to print my source code on my printer with the following header line:
MyFile.java
but now it prints:
File - c:\Sources\MyProject1\MyFile.java

Could you please advice, how to print the file name only?



Thank you in advance.
2 comments
Comment actions Permalink
Hello,

I've redirected your request to our IDEA support team.
It's better to address IDEA questions to support@jetbrains.com .

Thank you.
0
Comment actions Permalink
Only $PAGE$ and $FILE$ variables are supported at the moment, vote for the related request at http://youtrack.jetbrains.com/issue/IDEABKL-46 , I've already added your comment there.
0

Please sign in to leave a comment.