Method List in Visual Studio Code

前端 未结 17 1811
醉话见心
醉话见心 2021-01-29 19:10

I\'ve recently started using the Visual Studio Code editor. I\'m really loving it, but there\'s one critical feature (for me) that I haven\'t been able to find. Is there a met

相关标签:
17条回答
  • 2021-01-29 19:35

    Invoke Code's Go to symbol command:

    • macOS: cmd+shift+o (the letter o, not zero)

    • Windows/Linux: ctrl+shift+o

    Typing a colon (:) after invoking Go to symbol will group symbols by type (classes, interfaces, methods, properties, variables). Then just scroll to the methods section.

    0 讨论(0)
  • 2021-01-29 19:35

    Visual Studio Code market place has a very nice extension named Go To Method for navigating only methods in a code file.

    Hit Ctrl+Shift+P and type the install extensions and press enter

    Now type Add to method in search box of extensions market place and press enter.

    Click install to install the extension.

    Last step is to bind a keyboard shortcut to the command workbench.action.gotoMethod to make it a real productivity thing for a developer.

    0 讨论(0)
  • 2021-01-29 19:35

    There is a plugin called show functions which lists all the function definitions in a file. It also allows you to sort the function so can search them easily.

    0 讨论(0)
  • 2021-01-29 19:35

    CTRL+F12 (CMD+F12 for Mac) - opens for me all methods and members in PHP class.

    0 讨论(0)
  • 2021-01-29 19:37

    In VSCode 1.24 you can do that.

    Right click on EXPLORER on the side bar and checked Outline.

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