Create a macro to open current file in another program? (eg. open an active .tex file in TeXstudio)
I love the look, familiarity, and shortcuts that PyCharm provides, so much so that I'd like to use it for writing LaTeX. I do however need to use TeXstudio occasionally (I find it's error feedback easier to read, it offers better shortcuts to symbols, making environments, etc.). When I'm in TeXstudio, I can open the currently active file in PyCharm with a macro I have written:
`system("\"C:/Program Files/JetBrains/PyCharm Community Edition 2019.1/bin/pycharm64.exe\" " + editor.fileName())`
I would like to do the opposite; when in PyCharm, take the active file, run a macro that opens the file in TeXstudio.
Can the same be done with PyCharm's macros? I would need to get the name and path of the active file, and generate a system command.
Please sign in to leave a comment.
Hello,
Please check on the External Tools feature https://www.jetbrains.com/help/pycharm/configuring-third-party-tools.html
Should you have any questions please let me know.