Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PhpStorm - How can I avoid creating the .idea folder?

Tags:

phpstorm

I don't want PhpStorm to create an .idea folder. Is this possible?

I'm working in a new environment where I pretty much MUST figure out a way to remove them or I have to change IDE, which I really don't want to do.

Can't PhpStorm store the project files and settings in its own directory?

like image 737
Weblurk Avatar asked Nov 15 '13 13:11

Weblurk


People also ask

Is .idea folder necessary?

The . idea folder (hidden on OS X) in the solution root contains IntelliJ's project specific settings files. These include per-project details such as VCS mapping and run and debug configurations, as well as per-user details, such as currently open files, navigation history and currently selected configuration.

Should I exclude .idea folder?

ignoring the idea folder is fine as not everyone uses them, and they are not part of your code - you (hopefully) don't need them on production, for instance. ignoring is fine, but removing is less of a good idea. It contains information for your local workspace.

Can I remove .idea folder?

After you enter the desired Idea Folder, click on the trash icon on the upper right corner of the Idea Folder box. Note: By deleting the Idea Folder you will also delete all ideas in Idea Folder.


2 Answers

I don't want PhpStorm to create an .idea folder. Is this possible?

No, but workaround is very simple and described in the actual ticket body: http://youtrack.jetbrains.com/issue/WI-343 :

WORKAROUND: Actually you can do it for a long time - but only manually. Just create a new project anywhere where you want to store your project data, then go to "Settings | Directories" and detach its dir and attach your project root folder.

Just remember to open this folder instead of actual one next time.

like image 142
LazyOne Avatar answered Oct 12 '22 17:10

LazyOne


Maybe, as an alternative, if you use a VCS, you can add .idea to your VCS ignore list? For example, for Mercurial it is called .hgignore and for Git - .gitignore.

like image 44
Anatoly Scherbakov Avatar answered Oct 12 '22 15:10

Anatoly Scherbakov