Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

Visual Studio: Toggle Outlining

📅 2011-Jul-25 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ keyboard shortcuts, outlining, visual studio ⬩ 📚 Archive

Outlining is the Visual Studio jargon for what is more commonly called code folding in other editors or IDEs. There are a lot of keyboard shortcuts for various outlining operations. I just remember and use one shortcut: Ctrl+M+L. This shortcut toggles outlining for the currently open file. That is, it folds all the code or unfolds all the code in the file.

I typically toggle the outlining to step back and get a picture of the functions in the file and where they are placed in the file. Sometimes I am looking for a certain function, so I fold all the code to find the function, then place the cursor at the function name and unfold all the code. The cursor remains at the line where it was placed and I am now in the code of that function. Pretty useful! 😊

Tried with: Visual Studio 2010