How can I specify the number of days to keep local history for source code files?

To change the history length for the C source editor, follow steps below:

  1. From the C/C++ perspective toolbar, select Window > Preferences .

    The Preferences window appears.

  2. Select General > Workspace > Local History .
  3. The Local History settings appear.
  4. In the Days to Keep Files textbox, change the days to keep files value.
  5. Click Apply .
  6. Click OK .

The history length for the C source editor is updated.