An IntelliJ/Android Studio plugin that exposes IDE functionality via REST APIs
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
META-INF
pic
src/main/java/io/appetizer/intellij
.gitignore
LICENSE
README.md
appetizer-intellij.iml
appetizer-intellij.jar
cli.py

README.md

appetizer-intellij

Appetizer-intellij is an IntelliJ/Android Studio plugin that exposes some functionalities of these IDEs to modern continuous integration systems. The goal is to allow CI systems to leverage the code navigation, code highlighting or even refactoring capability of powerful IDEs.

Installation

Install from JAR archive

To install the plugin from the JAR archive, follow these steps:

  • Download the latest version of the plugin from GitHub release
  • Once downloaded, open the IntelliJ IDEA File -> Settings -> Plugins -> Install plugin from disk -> Choose
  • Browse to the location of the downloaded JAR archive.
  • Press OK to confirm the installation. The IDE will ask you to restart in order to complete the plugin installation. Restart your IDE.

Install from plugin repositories

Coming soon

Install from Appetizer Desktop

Coming soon

Usage

Once installed, appetizer-intellij listens at localhost:8097 for commands (port can be configured in the setting panel of the plugin). It receives REST commands and we provide a simple Python CLI for demonstration.

  • Highlight certain line(s) of a Java class. group is an arbitrary numeric ID. class_name is a fully qualified Java class, e.g. com.example.MyClass. lines is a comma-separated list of line numbers, e.g., 1,2,100. After executing, these highlights would be added to the specified group and can be unhighlighted by giving the group.
 python cli.py highlight group class_name lines

image

  • Un-highlight a certain highlight group
 python cli.py unhighlight group

image

  • Query which line(s) belong to a certain highlight group
 python cli.py query group

image

  • Jump to a certain line of a Java class
 python cli.py jump class_name line

image

  • Query the basic information of the project of last operation
 python cli.py info

image

  • Query plugin version
 python cli.py version

image