Visual Studio - 更改类时自动刷新类视图

Visual Studio - Automatically refresh class view when changing class(Visual Studio - 更改类时自动刷新类视图)

本文介绍了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 - 更改类时自动刷新类视图

基础教程推荐