Here is how to expand all collupsed code in current document in Visual Studio 2022 Ctrl + M, Ctrl + L