Create macro to print
Hi,
Can anyone help me in creating a macro that will switch the current theme, print the active page and then switch back to Darcula?
I have tried to create a keyboard macro that does
=============================
CTRL+`
1
1
ALT+F
P
<RETURN>
<RETURN>
CTRL+`
1
2
=============================
But at most it manages to switch the theme and that is about it, not sure if its trying to 'press' the keys to quickly or what, but this is the only way i can find to get around the stupid bug of printing the background colour when printing from any of the dark themes :(
Ideally, if the macro/command/script could pause when the print dialogs come up, and continue once they have gone, that would be better, but as my default print settings are setup ok, then it would be fine without this.
P.S. Using Linux, so unable to use something external like AutoHotKey to automate this, and all the Linux equivalents have issues, plus i would really like something that was designed to work with PHPStorm rather than trying to crowbar external programs into my workstations.
Thanks
M
Please sign in to leave a comment.
Unfortunately, I haven't succeeded with recording such a macro as well. Something goes wrong during changing the theme.
Here's a couple of related requests:
https://youtrack.jetbrains.com/issue/IDEA-90668
https://youtrack.jetbrains.com/issue/IDEA-166077#u=1483089661800
As a (very lame) workaround, you can set color scheme in File | Settings | Editor | General > Copy as rich text by default to Default and then copy-paste the code to another text editor and print from there.
Thanks Vladimir, there are several options to export and print from outside, but really want something that i can do directly inside PHPStorm, would be ideal if JetBrains actually FIXED the original issue, as its been around for years now! but creating some form of macro is about the closest I think anyone will get to being able to print.