Visual Studio: Is there a way to collapse all items of Solution Explorer?

后端 未结 13 1871
天涯浪人
天涯浪人 2021-01-30 02:30

I know that I can use Arrow Keys to collapse items of solution explorer one by one, but I would like to know if there is a way to collapse all items with only one operation. I w

13条回答
  •  感动是毒
    2021-01-30 03:14

    Using Visual Studio 2017 and above

    use shortcut

    • Open Tools > Options or press Alt + T + O
    • Under Environment tab > Keyboard (Also, you can create a shortcut for Tools.CustomizeKeyboard to open it directly)

    To Collapse All

    • Search for "SolutionExplorer.CollapseAll"
    • Add a new shortcut for example Ctrl+Left Arrow,Ctrl+Left Arrow

    To Expand All

    • Search for "SolutionExplorer.Folder.CollapseAll"
    • Add a new shortcut for example Ctrl+Right Arrow,Ctrl+Right Arrow

    • Assign > OK

提交回复
热议问题