Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

Visual Studio: Vertical Split of Same File

📅 2012-Feb-22 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ split, visual studio ⬩ 📚 Archive



It is easy to do vertical split in Visual Studio (see here). But, it is not obvious how to display the same file in both the vertical split sections.


  1. Open the file you want to display in both vertical split sections. The file is open in a tab.
  2. Choose Window → New Window to create a clone of this tab. These two will now be named Main.cpp:1 and Main.cpp:2
  3. Now right-click on any of the two clone tabs and choose New Vertical Tab Group.

The file is now displayed in both vertical split sections. This solution is non-obvious and calling a new tab as a new window is confusing. Hope they can fix all of this in the next release.

Tried with: Visual C++ 2010 Express and Visual Studio 2010

© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘📧