When i edit one file, the changes are reflected on the other files?
已回答
I am new to PyCharm,
I have a virtual environment set up for my project. I have three files that i am working on and i noticed when i edit one file, these changes are reflected on the other two files. How can i turn this off in PyCharm and what is the setting for this?
Thanks
请先登录再写评论。
Hi Sanjak! Not sure if I understood you correctly, so you have three Python files, right? And when you edit one - changes appear in others too? Could you please attach few screenshots or screencast to demonstrate the problem?
Hi Pavel,
I found what i was doing incorrectly. I noticed that i was not double clicking on the file to fully open it in PyCharm. When i clicked on a file in PyCharm IDE, i would get the selection of the file, but IDE would still be showing the contents of the current file that i am working with and that is what was confusing me and made me think that the IDE was copying contents to other files.
I come from Visual Studio Code editor and there when i one click a file it selects it and opens it at the same time. Is it possible to configure PyCharm to do the same?
Thanks
Yeap, there is such option, try to click on the gear-icon in the Project Tree window and enable Autoscroll to Source. Now every time you select a file in the project tree PyCharm will open it in the Editor. Has it helped?
Yes, it did. Thank you!