collapse all code visual studio 2019 code example Example: collapse all code visual studio Visual studio fold all: Ctrl + M + O unfold all: Ctrl + M + P