How to show code outline in Visual Studio?

前端 未结 19 755
情歌与酒
情歌与酒 2020-12-13 12:26

This kind of stuff exists in Eclipse:

\"alt

But I\'ve not found it in Visual Studio yet. Is ther

相关标签:
19条回答
  • 2020-12-13 12:52

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

    shortcut: CTRL+ Shift + ALT +

    0 讨论(0)
  • 2020-12-13 12:53

    One great plugin for VS is CodeMaid. It is powerful and it is open source! You can also sort your methods within the CodeMaid Spade view.

    Here is a screenshot.

    Code outline

    0 讨论(0)
  • 2020-12-13 12:53

    This question was asked quite a while ago and before Visual Studio Code existed but I found it when searching for how to do this with Visual Studio Code so I thought others might stumble on this question too so I thought I'd share my solution. Here's how to do it in Visual Studio Code. I'm using TypeScript but it works for JavaScript, too.

    1) View -> Open View

    2) select (or type) Outline

    3) You'll now get an Outline palette that shows full information on the class including properties and functions.

    0 讨论(0)
  • 2020-12-13 12:53

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

    0 讨论(0)
  • 2020-12-13 12:54

    There's an extension provided Free, by Microsoft, that enables this and many other features into Visual Studio. The extension is Productivity Power Tools.

    0 讨论(0)
  • 2020-12-13 12:55

    // 2019 answer
    There is an free extension for Visual Studio that provide code outline: https://marketplace.visualstudio.com/items?itemName=SamirBoulema.CodeNav

    0 讨论(0)
提交回复
热议问题