How to show code outline in Visual Studio?

2019-01-22 10:58发布

This kind of stuff exists in Eclipse:

alt text

But I've not found it in Visual Studio yet. Is there such a window to show code outline at all?

I tried both Document Outline and Class View windows. The Class View is close, but it only shows class information, can it come up with function info also?

17条回答
干净又极端
2楼-- · 2019-01-22 11:15

If you use PHP, make sure you install full version as mentioned in the docs

查看更多
叛逆
3楼-- · 2019-01-22 11:16

Ctrl+Shift+O comes closest to what you want

If you need more, see: discussion of the Outline Feature on github

查看更多
叼着烟拽天下
4楼-- · 2019-01-22 11:16

Resharper has a feature of inspection. You can see incoming and outgoing calls from there.

shortcut: CTRL+ Shift + ALT +

查看更多
啃猪蹄的小仙女
5楼-- · 2019-01-22 11:18

In VS2017 you can navigate between items in the file directly from the upper right corner of the Editor.

Screenshot

查看更多
女痞
6楼-- · 2019-01-22 11:22

I've started using VSCommands 10.

This has support for the most common languages used when developing in Visual Studio 2010, including JavaScript.

查看更多
7楼-- · 2019-01-22 11:23

You can use the Class View Window, or you can use outlining to collapse the code window to definitions (Ctrl-M-O and Ctrl M-L in the standard keyboard set up)

查看更多
登录 后发表回答