Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to browse a .zip file in IntelliJ (or .jar, etc.)

I'd like to be able to "open up" (without unzipping) .zip files or .jar files in IntelliJ much like you can do in Eclipse by clicking the twisty. How do I do this with IntelliJ?

like image 810
Joel Avatar asked May 23 '12 03:05

Joel


People also ask

How do I open a zip file in IntelliJ?

Launch IntelliJ IDEA. If the Welcome screen opens, click Open. Otherwise, from the main menu, select File | Open. In the dialog that opens, select the directory in which your sources, libraries, and other assets are located and click Open.


2 Answers

Jar files visible in your project structure that cannot be expanded have not yet been "added" as libraries. Right click the jar file and select Add as Library...

Also see Configuring Module Dependencies and Libraries.

And: Correct way to add lib/*.jar to an IntelliJ IDEA project

like image 182
Christopher Peisert Avatar answered Sep 28 '22 10:09

Christopher Peisert


There is now a Intellij Plugin that solves that:

https://plugins.jetbrains.com/plugin/9491-archive-browser

Update: it works now also for nested archives. (tested 2019.1)

like image 44
pme Avatar answered Sep 28 '22 08:09

pme