Clean up temporary files
ReSharper helps monitor and clean up temporary files that your development pipeline produces. These include logs, caches, outdated artifacts of build tools and package manages, and so on. You can manage temporary files on the Alt+R, O).
page of ReSharper options (File masks for temporary files produced by ReSharper are included in the list of monitored locations by default. But you can also add other locations specific to your development workflow.
Add custom temporary files locations
Select Alt+R O, then choose on the left.
from the main menu or pressClick Add. A new entry will be added to the table.
In Path template, specify a file mask that matches a set of temporary files.
You can use Ant-style wildcards in file masks:
?
to match a single character excluding directory separators*
to match zero or more characters excluding directory separators**
to match any number of characters including directory separators/
or\
to match directory separators regardless of the OS path format
For example a pattern
**Test?\**.*
will match the following files:C:\Projects\MyTestX\data\file_one.txt
/home/projects/TestY/file_two.xml
But not:
C:\Projects\Test\data\file_one.txt
/home/projects/TestY/file_two
If you are sharing solution settings, be careful not to save absolute paths to a shared settings layer.
In Outdated after, set the number of days after which a file matched by the path template is considered outdated since its last modification.
In Description, specify an arbitrary description for the set of files matched by the path template.
If your disk space is getting full, you can clean up temporary files right away.
Clean up temporary files manually
Select Alt+R O, then choose on the left.
from the main menu or pressUse the buttons in the Manual cleanup section to delete only outdated or all temporary files:
By default, ReSharper enables automatic cleanup of outdated temporary files.
Configure scheduled cleanup of temporary files
Select Alt+R O, then choose on the left.
from the main menu or pressUse the controls in the Scheduled cleanup section to toggle the automatic cleanup and change the time interval, in days, between scheduled launches of the cleanup.