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 17K
  • Win 9K
  • OS X 3K
  • Linux 4K
Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22
Windows 0 1 7 5 5 1 3 5 4 2 1 5 6 3 2 1 6 6 3 2 2 2 1 7 7 2 3 4 2 5 3 3 2 8 3 6 3 5 0 3 4 4 3 2 6 2
OS X 0 0 0 2 1 1 1 4 2 1 1 0 1 1 0 0 1 2 1 1 0 0 1 2 0 2 1 0 2 0 2 1 0 1 3 5 1 0 5 3 1 1 2 2 2 0
Linux 0 2 3 1 2 1 1 2 2 2 3 1 1 1 0 2 1 3 2 2 0 1 2 2 2 0 1 1 2 2 2 1 3 0 2 3 1 2 3 2 2 0 0 2 3 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"
    ]
}