LibGDX Plugin

Compatible with: IntelliJ IDEA Android Studio
Oct 14, 2018
10 635
This unofficial plugin adds a number of LibGDX related features to IntelliJ and Android Studio.

This plugin needs a recent version of the official Kotlin plugin to be installed (even if you don't use Kotlin), so please install and/or enable that plugin first.

See github.com/BlueBoxWare/LibGDXPlugin for more information.

Download plugin

Recent change notes

1.17.1
  • Fix issues with IntelliJ 2018.3 EAP
1.17
  • Support for com.badlogic.gdx.graphics.Colors
  • Find Usages for tags in @GDXTag annotation
  • Unused tag inspection for @GDXTag annotation
  • Show color previews in decompiled classes too
  • Always show completion popup when there is something useful to show
  • Miscellaneous small improvements
1.16.1
  • Fix non existing resource inspection: it should only look at annotated elements
1.16
  • Inspection to highlight references in Java/Kotlin to resources which don't exist. @GDXAssets annotated fields and variables only.
  • Warn about outdated libraries in Gradle Kotlin DSL too
  • Performance improvements
  • Skins: Inspection to inform about the ability to use short class names instead of qualified names when using LibGDX >= 1.9.9
  • Skins: Inspection to highlight usage of deprecated classes and fields
  • Skins: Quickfix to create resources which don't exist
  • Skins: Use the @GDXTag annotation to inform the plugin about custom short names for classes
  • Skins: Intentions to convert color resources to hex or to float components
  • Skins: Create new color wizard (Code -> Generate or Alt-Insert, Command-N)
1.15.2 1.15.1 1.15 1.14
  • Warning when @GDXAsset annotation is used on an invalid target
  • @GDXAsset related functionality now works correctly with array literals in the annotation (available since Kotlin 1.2)
  • Minor fixes
1.13
  • Completion for I18NBundle.get() and I18NBundle.format() arguments
  • Improved Go to definition, Find Usages and renaming support for .properties keys
  • Invalid property key inspection for I18NBundle.get() and I18NBundle.format()
1.12
  • New inspection: missing WRITE_EXTERNAL_STORAGE permission
  • Skin files: improved autocompletion, refactoring support and string handling
  • Bugfixes
1.11
  • Skin files:
    • Allow suppression of warnings for specific objects or entire file
    • Added quickfixes to suppress warnings
    • Added a number of inspections
    • Smart closing quotes insertion and removal
    • Bugfixes
  • Previews for Textures/Drawables: with SHIFT pressed, hover over a region in an Atlas files, a Drawable name in a Skin file or Drawable name in Skin methods of a properly annotated Skin object
  • Color previews in the debug view
1.10
  • Proper support for arrays and nested objects in Skin files
  • Fixed Structure View not updating when changing files
1.9
  • Support for Completion, Go to Definition and Find Usages of resources from Skin files and Atlas files in Java and Kotlin code. Use the @LibGDXAssets annotation to specify the files to use. See the README for usage instructions.
  • Atlas files: allow spaces in region names
  • Misc. bug fixes
1.8
  • Syntax Highlighting and Structure View for .fnt files
  • Use Maven Central instead of GitHub to determine latest versions of libraries. Respect proxy settings, if any.
  • Add versions checks for more libraries. The following libraries are now checked: Ashley, Autumn, Autumn MVC, Box2d, Box2dLights, Gdx AI, GDX Bullet, GDX Controllers, GDX FreeType, gdx-dialogs, gdx-facebook, gdx-lml, gdx-lml-vis, Gdx-Pay, Kiwi, KTX actors, KTX app, KTX assets, KTX collections, KTX i18n, KTX inject, KTX log, KTX math, KTX scene2d, KTX style, KTX vis, KTX vis-style, LibGDX, libgdx-utils, libgdx-utils-box2d, Overlap2D, Vis Runtime, VisUI, Web Sockets, Web Sockets Serialization
  • Several fixes in the handling of Skin files, show color previews everywhere and use Ctrl-B to jump between definitions and usages of Tinted Drawables
1.7
  • Skin files:
    • Fix Find Usages for resource names
    • Ctrl-B on a class name: jump to class source
    • Ctrl-B on a property name: jump to field source
    • Ctrl-B on a bitmap font name: jump to font file
    • Renaming a resource with Shift-F6 also renames usages of that resource in the Skin file
    • Click on a color preview to open a color selection dialog
    • Inspections for Skin files: warnings about using classes or fields which do not exist and about malformed color strings
  • Syntax Highlighting, Structure View and Folding for .atlas/.pack files
1.6
  • Skin files:
    • Fix auto indentation
    • Goto Definition/Find Usages for resource names in Skin files
    • Refactoring: support for renaming resources
1.5
  • Skin files:
    • Code completion (classnames, resource names, property names, etc)
    • Structure view
    • Configure the code style and formatting for Skin files with Settings -> Editor -> Code Style -> LibGDX and apply it to existing code with Code -> Reformat Code
    • Brace matching
1.4
  • Fixed several issues with Skin files
  • Code folding for Skin files