ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Java​Imports

by MDeiml ST2/ST3

Sublime Text plugin for Java imports

Details

Installs

  • Total 16K
  • Win 9K
  • OS X 3K
  • Linux 4K
Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1
Windows 4 1 1 2 3 5 5 2 3 2 6 4 3 8 3 1 4 0 4 8 3 1 6 3 3 5 7 8 8 9 2 4 2 5 4 2 7 2 6 0 1 8 4 2 3 2
OS X 1 2 0 1 0 2 1 1 4 0 0 1 1 1 0 3 3 3 0 0 0 1 1 5 1 1 1 1 1 1 2 3 1 1 4 0 2 2 1 1 1 1 0 1 1 1
Linux 2 4 1 2 0 1 2 2 1 3 1 0 0 4 5 1 0 1 1 1 0 2 2 1 1 2 0 2 1 1 1 2 3 2 1 0 4 1 0 1 1 1 0 2 2 0

Readme

Source
raw.​githubusercontent.​com

SublimeJavaImports

JavaImports is a Sublime Text plugin for automatically adding imports to your Java files. It resolves the package names by scanning through a source .zip or folder or a .jar file.

Installation

The best way to install this is using PackageControl

Usage

First you have to define your java_import_path in your settings. The best path to use is the src.zip in your Java JDK. You can also use your android.jar as path to work with android classes.

To add an import either mark all class names to import and press ctrl+alt+i or just press ctrl+alt+i and then enter the class name.

To add a library to your project, in your .sublime-project add

"settings":
{
    "java_import_path":
    [
        "default/java/import/path/src.zip",
        "path/to/library.jar"
    ]
}