Visual Studio - Automatically refresh class view when changing class(Visual Studio - 更改类时自动刷新类视图)
问题描述
我来自 Java 背景,并且已经使用 Eclipse 多年.我在使用 Visual Studio (2008) 时错过的一项功能是,当我更改类时,类视图不会自动刷新.在 Eclipse 中,它有一个(类)大纲"窗口,它代表当前类并显示方法/属性等,它总是更新到正在使用的类.
I come from a Java background and have spent many years using Eclipse. One feature that I miss when using Visual Studio (2008) is that the class view does not automatically refresh when I change class. In Eclipse it has a (class) 'Outline' window which represents the current class and shows methods/properties etc, this always updates to the class one is using.
VS 中等效的类视图"不会根据我正在访问的当前类自动刷新.我想知道是否有人知道实现这一点的方法?
The equivalent 'Class View' in VS does not automatically refresh according to the current class I am visiting. I wondered if anyone knew a way to make this happen?
理想情况下,我希望 VS 视图尽可能与 Eclipse 相似,但这一特性会很棒.
Ideally I'd like the VS view to be as similar to Eclipse as I could get it, but this one feature would be great.
提前致谢,会
推荐答案
看了kingmaxxx的回复,我去Tools->Options->Environment->Keyboard,在Text Editor视图中绑定Ctrl+Shift+C到View.SynchronizeClassView.这似乎取代和补充了原始行为 (View.ClassView),因为如果 ClassView 不可见,它将显示它并专注于当前类.
After reading kingmaxxx's reply, I went to Tools->Options->Environment->Keyboard and bound Ctrl+Shift+C to View.SynchronizeClassView in Text Editor view. This seems to supplant and supplement the original behavior (View.ClassView), as it will display ClassView if it wasn't visible and focus on the current class.
(Visual Studio 2008)
(Visual Studio 2008)
这篇关于Visual Studio - 更改类时自动刷新类视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Visual Studio - 更改类时自动刷新类视图
基础教程推荐
- “未找到匹配项"使用 matcher 的 group 方法时 2022-01-01
- 减少 JVM 暂停时间 >1 秒使用 UseConcMarkSweepGC 2022-01-01
- Java:带有char数组的println给出乱码 2022-01-01
- Java Keytool 导入证书后出错,"keytool error: java.io.FileNotFoundException &拒绝访问" 2022-01-01
- 无法使用修饰符“public final"访问 java.util.Ha 2022-01-01
- 在 Libgdx 中处理屏幕的正确方法 2022-01-01
- FirebaseListAdapter 不推送聊天应用程序的单个项目 - Firebase-Ui 3.1 2022-01-01
- 设置 bean 时出现 Nullpointerexception 2022-01-01
- 如何使用 Java 创建 X509 证书? 2022-01-01
- 降序排序:Java Map 2022-01-01