Newbie trouble with PyCharm - not very stright-forward with it's obsession about what is a project.

I choose to open existing "file or project"   - and I point it to one of my single-file python files.

now I can edit it, but not refactor, apparently because it does not belong to a project.

 

So I make a new empty project, this time I drag'n'drop a file into the editor (this project?)  - and ...same.

 

Is it so, that for PyCharm to work, it needs whatever file/files ti be located inside ~/PyCharmProjects/<project>  ?  can't it be used as a good editor wherever the file is ?

 

 

3 comments
Comment actions Permalink

>So I make a new empty project, this time I drag'n'drop a file into the editor (this project?) 

Not really, you probably opened the file in it's original location. Try to copy in the project root and then open from the Project View in PyCharm

0
Comment actions Permalink

Thank you.

So... can Pycharm be fully used for "random" python files, not necessarily established "projects" ?
I often edit files in misc systems.

0
Comment actions Permalink

Yes, you can even refactor/rename usages for the current file is you set the scope to "current file".

0

Please sign in to leave a comment.