Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode: search classes / go to class for imported libraries

What is the VSCode equivalent to IntelliJ's Go to class ? I.e. I want to type in the class name and receive a pop-up list of all the classes that match my pattern. However, these should include not-only my project's classes but also imported libraries' classes.

InteliJ has an option "Include non-project items" when you look for classes using ⌘ + O or ctrl+O.

The language I'm using is: Dart.

enter image description here

like image 577
kosiara - Bartosz Kosarzycki Avatar asked Mar 21 '19 10:03

kosiara - Bartosz Kosarzycki


People also ask

How do I see external libraries in VS Code?

You can use CTRL+click to navigate to files of both the standard lib and external libs.

How do I import a class into VS Code?

How to use: Right click on any class name and select Import Class to automatically import it's namespace at the top of the file. Press CTRL + ALT + i on Windows / CTRL + Option + i on MacOS.


1 Answers

Try using go to symbol in workspace (bound to T by default). This should be implemented by dart and other language extensions.

It's up to each extension to determine how this feature works. JS/TS includes symbols from imported libraries for example, but this behavior may differ between extensions

like image 84
Matt Bierner Avatar answered Sep 17 '22 03:09

Matt Bierner