Method history

Hello Community

I'm trying to clean up a major rewrite of my code files. For that, I want to check each method at a time and compare it the previous version to document the changes.

I can do that with local history, but it's file-wide so it's uneasy to compare a single method at a time. Is there a more direct way?

TIA

greg

5 comments

SO I found the only missing feature in PHPStorm??? ;)

0
  • Make a selection (your whole method)
  • Right click | Local History | Show History for Selection


Is this is what you are after? Does it work for you?

0

It seems to be! :)

Unfortunatly it also seems I lost my local history moving to 6.0 :(

But I'll be using it from now on.

greg

0
Unfortunatly it also seems I lost my local history moving to 6.0

Yes -- Local History is considered "temp"/geneated content (like indexes/caches) and will be deleted when "File | Invalidate caches.." is used .. and does not migrate between major versions (as it stored in different folders and linked to the actual indexes/caches). http://youtrack.jetbrains.com/issue/IDEA-61385 (and duplicates)

You should use proper VCS if such history is very important for you.

0

Please sign in to leave a comment.