visual studio compreme all functions code example Example: visual studio compreme all functions CTRL + M + O -> will collapse all.