.idea folders

Hello,

Myself and a couple of my fellow developers at work have been evaluating PyCharm the last few days, and I have to say that I'm very impressed so far.  But, one things that bugs me (and all of my fellow co-workers) is the .idea folders that get "sprinkled" around when editing files.  Is there someway to turn this off?  Or give it a default directory/repository to created them in?

Again, really like the product as a whole.  Thanks to the developers for their work...

7 comments

I agree with David S.  Why not do what git does and have one .idea directory at the project level as a default.  And allow for an optional environment variable to move it to any location.  Having .idea directories below every directory is "old school" now.

Thanks,

Bryan

0

Hello Bryan,

I agree with David S.  Why not do what git does and have one .idea

directory at the project level as a default.  And allow for an

optional environment variable to move it to any location.  Having

.idea directories below every directory is "old school" now.

In a normal workflow, you use "Open Directory" in PyCharm on the top-level

project directory, and it keeps the .idea directory in that directory only.

You can use "Open Directory" on directories below the top-level project directory

(in which case PyCharm will create additional .idea directories), but there

shouldn't be any need to do that.

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0

Dimitry,

Thanks for replying.  We got some more time to use and evaluate PyCharm on both Windows and Linux.  It's quickly becoming a favorite IDE at my company, but unfortunately the proliferation of .idea directories will be a show stopper for actually purchasing this product. Some developers prefer to right click on a file in a file manager and open it in PyCharm. For this case, they definitely don't want an .idea directory to be created, and we have been unable to find a way to turn it off.  It creates hundreds of .idea directories that have to be removed.  Other developers prefer to first open PyCharm and then open a directory which is very convenient, but they also don't want an .idea directory created in the top-level directory.  Having an .idea directory in the user's home directory would be acceptable.  The only time a top-level .idea directory would be acceptable for us, is if we create or open a project.  Other than that, everything should be either using the default configuration values, or configuration value read from the user's home directory.  I really hope you this will change in the future.  Again, this is an awesome IDE and we are considering purchasing copies for our Python developers, but this is definitely a show stopper.

Thanks,

Bryan

0

Hello Bryan,

One thing that would be feasible to implement before the 1.0 release, without

disrupting too much the current model, is to look for the .idea directory

in directories above the directory/file being opened, and if we find one,

open that directory as a project and to open the selected file in the editor.

Then, if you do Open Directory once for the top-level project directory,

you can then open random files and directories below the project directory,

and no additional .idea directories will be created.

The settings stored under .idea are specific to a particular project, so

they can't be stored in a single location in the user home directory. We

can create multiple different .idea directories somewhere under the project

directory, using the hash of the project path to distinguish between settings

for different projects, but I don't think we would have time to implement

that option before the 1.0 release.

Thanks for replying.  We got some more time to use and evaluate

PyCharm on both Windows and Linux.  It's quickly becoming a favorite

IDE at my company, but unfortunately the proliferation of .idea

directories will be a show stopper for actually purchasing this

product. Some developers prefer to right click on a file in a file

manager and open it in PyCharm. For this case, they definitely don't

want an .idea directory to be created, and we have been unable to find

a way to turn it off.  It creates hundreds of .idea directories that

have to be removed.  Other developers prefer to first open PyCharm and

then open a directory which is very convenient, but they also don't

want an .idea directory created in the top-level directory.  Having an

.idea directory in the user's home directory would be acceptable.  The

only time a top-level .idea directory would be acceptable for us, is

if we create or open a project.  Other than that, everything should be

either using the default configuration values, or configuration value

read from the user's home directory.  I really hope you this will

change in the future.  Again, this is an awesome IDE and we are

considering purchasing copies for our Python developers, but this is

definitely a show stopper.

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0

Dimtry,

Just to be clear... opening a file or a directory that contains an ancestor .idea directory and using it is reasonable.  The assumption here is that the file is part of a pre-existing project.  The same goes for opening a directory.  But if a .idea directory isn't found when opening a file or directory, it should not be created. Files and directories should not be considered projects by default.  Sometimes developers want to use PyCharm as a regular editor.  Please *only* create .idea directories for an explicit project specified by the user.

Thanks,

Bryan

0

Hello Bryan,

I don't think we would be able to offer this option before the PyCharm 1.0

release. PyCharm is an IDE, not a plain-text editor, and all operations are

performed in the context of a project. The code also is designed to always

persist the project settings to disk. It's possible that we would be able

to make persisting the settings optional in a future update, but this will

require some fairly low-level changes in the underlying IntelliJ Platform,

which are not quite approriate at this point of the product lifecycle.

Just to be clear... opening a file or a directory that contains an

ancestor .idea directory and using it is reasonable.  The assumption

here is that the file is part of a pre-existing project.  The same

goes for opening a directory.  But if a .idea directory isn't found

when opening a file or directory, it should not be created. Files and

directories should not be considered projects by default.  Sometimes

developers want to use PyCharm as a regular editor.  Please only

create .idea directories for an explicit project specified by the

user.

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0

Hello Bryan,

Some YouTrack issues that you can watch or vote for:

http://youtrack.jetbrains.net/issue/PY-1673

http://youtrack.jetbrains.net/issue/PY-1672

Additional ones are welcome.

Just to be clear... opening a file or a directory that contains an

ancestor .idea directory and using it is reasonable.  The assumption

here is that the file is part of a pre-existing project.  The same

goes for opening a directory.  But if a .idea directory isn't found

when opening a file or directory, it should not be created. Files and

directories should not be considered projects by default.  Sometimes

developers want to use PyCharm as a regular editor.  Please only

create .idea directories for an explicit project specified by the

user.

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0

Please sign in to leave a comment.