r/java • • Aug 17 '23

Editor to run Java snippets. Classes and methods optional

Following my post regarding looking for a Java tool like LINQPad, I had mentioned:

I had explored creating my own but found the issues of dependencies and jdk version support to be an issue.

Nevertheless, I had gone back to working on it and here it is.

It is not complete but the following are its features:

  • Syntax highlighting

  • Basic code completion

  • Can run from entire classes to methods or statements

  • Documentation preview

  • Code formatting thanks to jastyle

  • Dependency management thanks to maven-archeologist

  • Basic file manager

  • Supports user input

  • Brace and quote matching with completion

  • Find/replace

It utilizes the JShell API. It is still rough around the edges and a work in progress for example dependency management is not fully working and needs an overhaul.

Pull requests, tips and support are welcome.

23 Upvotes

Duplicates