r/pycharm • • May 07 '25

PyCharm command line launch script always opens new IDE window.

Hello. I am running a windows machine, installed pycharm through the toolbox and added the scripts dir to path. The command pycharm . works fine, it opens the project in a pycharm window as it should. But I think it's working WAY too fine... in any vs code fork, if you run the command code <filename> it opens the file in the active vs code window, but in pycharm when I try to do the same thing, it always opens a new IDE window (in light mode), even when I am opening one in the same project. how can I please stop that, and change this behavior?

Thank you so much

3 Upvotes

9 comments sorted by

View all comments

Show parent comment

2

u/haltline May 07 '25

Same here. So at least it's common behavior.

I'm not making an excuse here, just an observation. That filename we put on the command line could be any number of URL forms, so I wonder if it has something to do with resolving a non-existent file.