Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add local jar library to visual studio code?

I've downloaded some jar files (e.g. gson-2.8.5.jar) and want to add them to visual studio code locally without any extra downloads so I can benefit from autocomplete feature of classes and methods, How should I do it?

I've searched a while in google and could not find anything useful, so even links to other answers is appreciated.

like image 979
Masked Man Avatar asked Sep 18 '25 19:09

Masked Man


1 Answers

As suggested by LeoZhu-MSFT which references this in comments all I had to do was open only the folder containing stand-alone Java files and if necessary put any jar dependency in a lib subdirectory (I was previously opening all directories with code snippets I work on in different languages as playground).

like image 169
Masked Man Avatar answered Sep 21 '25 08:09

Masked Man