type CTRL+ALT+SHIFT+F12 twice to force a garbage collection

A command built into VS to force a garbage collection (GC.Collect).

 Type “CTRL+ALT+SHIFT+F12” twice.   

This keystroke is bound to the command “Tools.ForceGC” so you can also call this command through DTE or a macro.

原文地址:https://www.cnblogs.com/zzj8704/p/1652318.html