Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Analog of class view in Visual Studio Code

Is there a way to quickly navigate through large files with multiple functions? Something like class view in VS ?

like image 695
Koks_rs Avatar asked Jun 16 '16 09:06

Koks_rs


People also ask

What is the use of class view in Visual Studio?

Class View displays the elements of an application. The upper pane displays namespaces, types, interfaces, enumerations, and classes, and the lower pane displays the members that belong to the type selected in the upper pane.

How do I change the view in VS Code?

The Activity Bar on the left lets you quickly switch between Views. You can also reorder Views by dragging and dropping them on the Activity Bar or remove a View entirely (right click Hide from Activity Bar).

How do I use a class code in Visual Studio?

To add a class in a Visual Studio C++ project, in Solution Explorer, right-click the project, choose Add, and then choose Class. This command opens the Add Class dialog box.

How do I view code in Visual Studio?

You can open code into Visual Studio in the following ways: On the Visual Studio menu bar, choose File > Open > Folder, and then browse to the code location. On the context (right-click) menu of a folder containing code, choose the Open in Visual Studio command.


2 Answers

Yes, there is the workbench.action.gotoSymbol command also known as outlining. Its default shortcut is CTRL+Shift+O.

If you have an extension installed which supports this command for the current file type then a list of methods, classes and maybe other symbols for the current file will drop down which allows you to jump to their definitions.

like image 92
Wosi Avatar answered Oct 04 '22 01:10

Wosi


Yes, there is now a built-in Outline View in VS CODE

like image 33
Mehdi LAMRANI Avatar answered Oct 04 '22 01:10

Mehdi LAMRANI