How to get file:/// links in the output window to open in the editor?
How do I get file:/// links (such as the one shown above) that appear in the output window to open in the editor when I click them? Is there a setting somewhere I need to tweak.
In my previous PyCharm versions, they opened in the editor by default (for file types such as csv, txt, html) but in the latest version, those files open in an external software (e.g., Excel, Notepad)
I'm running PyCharm 2021.1.1 on Windows 10
请先登录再写评论。
Hello,
please take a look at the following workaround https://youtrack.jetbrains.com/issue/IDEA-240013#focus=Comments-27-3320427.0-0 and let me know if it helps.
There are a couple of reported bugs that look similar, please feel free to vote
https://youtrack.jetbrains.com/issue/IDEA-240013
https://youtrack.jetbrains.com/issue/IDEA-239732
https://youtrack.jetbrains.com/issue/IDEA-237342
Thanks for the reply Antonina Belianskaya
The workaround didn't work for me, unfortunately.
Sure, I'll vote for those bugs. However, those bugs are about file links in debugging or stack trace outputs. I don't have that problem. It's the file:/// links that don't work for me. In the screenshot below, the link pointed by the green arrow works as expected but the one pointed by the red arrow opens in Excel instead of PyCharm.
Hello,
thank you for getting back!
I apologize, seems like I chose the wrong direction, please enable the csv in the associated type with PyCharm:
Let me know if it works.
Thanks again for the follow up Antonina Belianskaya
I had that set already (see below), but doesn't seem to help.
Note that I don't want to configure Windows to open csv files in PyCharm (i.e., as a OS-wide file association setting) as that's not desirable. Only links to csv files shown in the PyCharm output window should open in PyCharm editor.
Found the corresponding bug report https://youtrack.jetbrains.com/issue/PY-37377 , please vote for the ticket.
Thanks Antonina Belianskaya Voted and commented. Not very hopeful though; given it was reported 2 years ago and nothing much has happened since then.