Local history

Accidentally I found out "Local history" function. That's great I loved it.
I hold my project files in USB drive, open project from two different computers.
When i check from other computer I saw a long "Local history" for some particular php file.
But when i check local history in this computer there was no entry.

Is local history written in someplace in local computer like c:\windows\temp?
Why couldn't I find that history matches from the earlier days.

Thank you for help.

4 comments
Comment actions Permalink

Hi ben,

Is local history written in someplace in local computer like c:\windows\temp?

Yes, Local History is local -- it is stored together with other temp/re-creatable data (e.g. C:\Users\USERNAME\.WebIde40\system\LocalHistory )

Why couldn't I find that history matches from the earlier days.

It is got cleared when you do "File | Invalidate Caches..." (or similar, e.g. when installing new version).

1
Comment actions Permalink

Is there a way to set the path "C:\Users\USERNAME\.WebIde40\system\LocalHistory"
to another location in disk ?

1
Comment actions Permalink

Symbolic link/Junction point on that folder anyone?

Alternatively (better say, more correct but wider approach) you can edit idea.system.path parameter in PhpStorm_INSTALL\bin\idea.properties file to point whole system folder anywhere else.

I just doubt that it will help you that much as it is specific for your local projects -- it may be considered as corrupt on another computer.

1
Comment actions Permalink

Local history is not intended to replace the proper history of a source conrol system - it is NOT guaranteed to be preserved and can't be moved or shared.


Something like local git repo will cost you almost nothing and server magnitudes better - just instll git, invoke git init on a project folder, make initial "commit all" and then commit with proper comments as you change your code. Its very fast, lives within project folder, across IDE's and OSes, provides usable history view, rollback to any point and will show changed sections of code right in the editor.

1

Please sign in to leave a comment.