简体   繁体   中英

Visual Studio 2017 equivalent for Eclipse Quick outline (Ctrl + O)

In Eclipse there is Ctrl + O shortcut for quick outline, which lets explore class attributes and methods with incremental search

在此处输入图片说明

Is there equivalent shortcut in Visual Studio 2017?

Probably you need a Class Veiw (from View or Ctrl+Shift+C ). Or the bar at top of edit window.

Or,

在此处输入图片说明

Basically you don't need shortcuts. After you type the dot this list drop automatically. But Ctrl+Space do the same.

Also, you can open a definition in the 'Peak View', by Ctrl + click : 在此处输入图片说明

Or open Code definition window (from View or Ctrl+Shift+V )

Keyboard command you want is Window.MovetoNavigationBar as can be seen in Default keyboard shortcuts in Visual Studio . Its shortcut is CTRL + F2 , though in Visual Studio / Tools / Options it's asociated with ALT + Home . Both work for me.

Once in Navigation Bar, you actually have three separate combo-boxes between which you can navigate using TAB key. The third one is the Eclipse Outline lookalike.

Unfortunately, it's easier to do this via mouse, as there is no direct shortcut to the last combo-box.

You can use Go To Members option using ( Alt + \\ ) shortcut. If it is listing all the members across the project, you may want to scope it to current document ( Ctrl + Alt + C )

Visual Studio 中的成员大纲搜索

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM