Use : Ctrl + K + 0 to fold all Ctrl + K + J to unfold all
Visual studio fold all: Ctrl + M + O unfold all: Ctrl + M + P