Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Local history configuration in IntelliJ IDEA 11

Tags:

In previous versions of IDEA I was able to set how many days back the Local History feature would keep the changes in the source files. For some reason, I cannot find this in IDEA 11.1.3, and local history is kept less about a day back. I think I went through all the settings, but can't find where I can increase this value. Does anyone know where I might find it?

Thanks!

like image 966
yby Avatar asked Aug 06 '12 13:08

yby


People also ask

How do I get Local History in IntelliJ?

Right-click anywhere in the editor and choose Local History | Show History from the context menu. In the dialog that opens, the left-hand pane shows a list of all saved revisions of the current file with timestamps.

How do I clear Local History in IntelliJ?

From the main menu, select File | Invalidate Caches. In the Invalidate Caches dialog, you can select additional actions that the IDE will perform while removing the cache files: Clear file system cache and Local History: remove the virtual file system cache together with the information stored in Local History.

Where are IntelliJ configurations stored?

By default, it is disabled, and IntelliJ IDEA stores run configuration settings in . idea/workspace. xml.

How do I get local changes tab in IntelliJ?

Local changes can be found under "Commit" tab. Show activity on this post. move to -> bottom left.


1 Answers

Modify bin\idea.exe.vmoptions (idea.vmoptions on Linux, Info.plist on Mac), add the following line:

-DlocalHistory.daysToKeep=5

It was the only configurable option removed from the settings user interface.

Another way is to use Help | Find Action, type Registry in the box, ensure that Include non-menu actions option is enabled, select the Registry result from the list, press Enter:

Registry

Note that the default value is 5 working days.

like image 88
CrazyCoder Avatar answered Sep 22 '22 16:09

CrazyCoder