Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Code - Classes and method lists?

Tags:

function

list

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

Thanks for any help!

like image 916
mr.burns Avatar asked Apr 22 '16 09:04

mr.burns


People also ask

How do I search for a method in VS Code?

VS Code allows you to quickly search over all files in the currently opened folder. Press Ctrl+Shift+F and enter your search term. Search results are grouped into files containing the search term, with an indication of the hits in each file and its location.

How do you find the class in VS Code?

1) Search file ( CTRL + P ) Simply type in the full or partial name and VSCode will automatically look into your current workspace and display the ones that contain the name you just wrote (at the top of the list would be the files already open).


2 Answers

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

like image 133
Eli Avatar answered Oct 03 '22 05:10

Eli


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

like image 32
sheppe Avatar answered Oct 03 '22 06:10

sheppe