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 - 更改类时自动刷新类视图


- Spring Boot连接到使用仲裁器运行的MongoDB副本集 2022-01-01
- Java包名称中单词分隔符的约定是什么? 2022-01-01
- Eclipse 插件更新错误日志在哪里? 2022-01-01
- Safepoint+stats 日志,输出 JDK12 中没有 vmop 操作 2022-01-01
- Jersey REST 客户端:发布多部分数据 2022-01-01
- 从 finally 块返回时 Java 的奇怪行为 2022-01-01
- 将log4j 1.2配置转换为log4j 2配置 2022-01-01
- 如何使用WebFilter实现授权头检查 2022-01-01
- C++ 和 Java 进程之间的共享内存 2022-01-01
- value & 是什么意思?0xff 在 Java 中做什么? 2022-01-01