With Visual Studio, Open Same File In Two Windows, Updates Reflected in Both

简介: I’ve always been frustrated in Visual Studio (all versions I can remember including latest vs2012) with not being able to look at the top of a file and edit the bottom.

I’ve always been frustrated in Visual Studio (all versions I can remember including latest vs2012) with not being able to look at the top of a file and edit the bottom.  Recently, on an Microsoft insiders list I participate in, someone posted that exact feature as a suggestion for future versions of Visual Studio.  Before I had a chance to post back a “+1” some one else posted back that you’ve been able to do that for years in all the versions of Visual Studio he could remember.

All you have to do is, with the version of the file you want to duplicate open (you are selected to that tab), press the menu choice “Window/New Window” and presto!  you have two copies.

image

Now, after pressing Window/New Window you get:

image

And, if you do the nice “multi monitor” support in Visual Studio by dragging one off of Visual Studio on to your desktop, you now can see and edit two copies of the same files.  Changes in one are immediately updated in the other.  Just what I’ve always wanted!!!

image

Not so discoverable, but an awesome feature.  Maybe it would be nice, as someone else suggested, to have that in the drop down of the file’s tab and it would be easier to find.

Hope this helps!

http://peterkellner.net/2012/07/08/with-visual-studio-open-same-file-in-two-windows-updates-reflected-in-both/

可惜的是,直到 2013,VS 并不是对所有的文件类型都支持双窗口,于是你需要下面的方案。不过,经过实验,对于13有用,对于12则会出现虽然打开了第二个窗口,但是窗口中内容为空。

http://stackoverflow.com/questions/728949/open-two-instances-of-a-file-in-single-visual-studio-session

不过上面的链接操作起来有实际困难,实际你只需要查询注册表中的“Single Code Window Only”,然后全部改为值为0就可以了。

 

Creative Commons License本文基于 Creative Commons Attribution 2.5 China Mainland License发布,欢迎转载,演绎或用于商业目的,但是必须保留本文的署名 http://www.cnblogs.com/luminji(包含链接)。如您有任何疑问或者授权方面的协商,请给我留言。
目录
相关文章
|
C++ Python Windows
在Visual Studio中使用Python(Windows)
在Visual Studio中使用Python(Windows)
115 2
|
数据库 Windows
超详细步骤解析:从零开始,手把手教你使用 Visual Studio 打造你的第一个 Windows Forms 应用程序,菜鸟也能轻松上手的编程入门指南来了!
【8月更文挑战第31天】创建你的第一个Windows Forms (WinForms) 应用程序是一个激动人心的过程,尤其适合编程新手。本指南将带你逐步完成一个简单WinForms 应用的开发。首先,在Visual Studio 中创建一个“Windows Forms App (.NET)”项目,命名为“我的第一个WinForms 应用”。接着,在空白窗体中添加一个按钮和一个标签控件,并设置按钮文本为“点击我”。然后,为按钮添加点击事件处理程序`button1_Click`,实现点击按钮后更新标签文本为“你好,你刚刚点击了按钮!”。
1254 0
|
存储 Linux Windows
【应用服务 App Service】App Service For Windows 如何挂载Storage Account File Share 示例
【应用服务 App Service】App Service For Windows 如何挂载Storage Account File Share 示例
116 0
|
Linux Python Windows
【Azure 环境】Windows中安装Python azure-eventhub-checkpointstoreblob-aio模块时出错 ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory:
【Azure 环境】Windows中安装Python azure-eventhub-checkpointstoreblob-aio模块时出错 ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory:
109 0
|
存储 文件存储 数据安全/隐私保护
Windows部署开源文件管理器File Browser并实现远程访问本地文件
Windows部署开源文件管理器File Browser并实现远程访问本地文件
799 1
|
C++ Windows
编织效率之梦:Visual Studio与Windows快捷键指南
编织效率之梦:Visual Studio与Windows快捷键指南
219 0
|
Java C语言 C++
0基础都能看懂的 Visual Studio Code(VScode)使用脚本一键配置安装C/C++环境、编译运行Windows版本教程(内附脚本、安装包下载链接)
网上很多配置VScode的C、C++环境的教程,但是很多时候跟着从头到尾做了之后反而还是运行不了,于是笔者在网上翻阅资料后,发现了一个自动配置环境的脚本,亲测有效,大概5分钟就可以配置好环境了。直接进入教程。
0基础都能看懂的 Visual Studio Code(VScode)使用脚本一键配置安装C/C++环境、编译运行Windows版本教程(内附脚本、安装包下载链接)
|
Java Windows
从根本解决windows安装JDK出现error:could not open '...jvm.cfg'的问题
从根本解决windows安装JDK出现error:could not open '...jvm.cfg'的问题
713 0
从根本解决windows安装JDK出现error:could not open '...jvm.cfg'的问题
|
JavaScript 前端开发 Ubuntu
【cypress】2. 安装Cypress(windows系统),以及cypress open报错解决。
【cypress】2. 安装Cypress(windows系统),以及cypress open报错解决。
【cypress】2. 安装Cypress(windows系统),以及cypress open报错解决。
|
Windows
Cannot open include file: ‘Windows.h‘: No such file or directory
Cannot open include file: ‘Windows.h‘: No such file or directory
312 0

热门文章

最新文章