/Code-Golf

IntelliJ CodeGolf Plugin

Primary LanguageKotlin

Code-Golf

IntelliJ IDEA plugin to 'codegolf' easier!

The plugin minifies your code by removing all the unnecessary whitespaces and renaming declarations to the shortest names possible.

You can use up to

  • 53 single-character names
  • 3456 two-character names
  • ...

Usage

Besides some additional context menu actions for minifying code in the current editor right in place, the plugin adds a tool window with tabs for different types of usage.

Playground

If you only want to play around a bit, use the Playground tab. It's editor contains the minified version of the currently edited code.

Online

This tab contains an embedded chromium browser for interacting directly with CodeGolf.

Tool window home

Whenever you save your code (strg + s) the plugin inserts it's minified version into the selected hole editor.

It also wraps the available languages into an additional block below details.

Tool window hole

Supported languages

  • Java

Installation

  • Manually:

    Download the latest release and install it manually using Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...

Roadmap

  • Browser extension which connects IntelliJ and your favorite browser.

Plugin based on the IntelliJ Platform Plugin Template.

Icons

pluginIcon.svg by ToZIcon, Golf.svg by Raj Dev, Space.svg by Muhammad Haq, Variable.svg by master mind on freeicons.io