20

is there any function list or function outline available in "Visual Studio Code"? I need it for JavaScript and PHP.

Thanks for any help!

mr.burns
  • 493
  • 2
  • 6
  • 14

2 Answers2

38

Methods are regard as symbols, so you can find symbols as follows
Ctrl+P, then get symbols @. or get symbols by category: @:
there's also a shortcut avaiable: ctrlshift+o

yihui.dev
  • 602
  • 8
  • 10
  • This does not work for all languages! which is unfortunate – shakeel osmani Dec 20 '16 at 14:30
  • That depends on whether (a) that language has default support or (b) you've installed the right extension for it. Out of the box visual studio has basic features for all languages, extensions provide the rest. – gideon Jul 01 '17 at 08:42
  • 4
    As @gideon says, it needs some additional extensions to work. I installed PHP Intellisense and Code Outline, and very importantly I added `"php.suggest.basic": false` to my settings file in order to disable Standard PHP suggestions (this is needed so that PHP Intellisense can work properly) – Seven Oct 03 '17 at 16:57
1

There is a Show Functions extension which can be configured with regular expressions. Out of the box it works with a lot of languages.

https://marketplace.visualstudio.com/items?itemName=qrti.funclist

sheppe
  • 708
  • 5
  • 12