Code Monkey home page Code Monkey logo

intellij-hocon's Introduction

IntelliJ IDEA Plugin for HOCON

Plugin page

Features and usage instructions

  • HOCON file type

    Files with *.conf extensions are automatically interpreted as HOCON files. Because *.conf is a common extension, you can change this in File -> Settings -> Editor -> File Types.

  • Syntax highlighting, brace matching and code folding

    syntaxhighligting.png

  • Configurable color scheme in File -> Settings -> Editor -> Color Scheme -> HOCON

  • Code formatter (the IntelliJ Reformat Code action) along with configurable code style in File -> Settings -> Editor -> Code Style -> HOCON

  • Breadcrumbs

    bradcrumbs.png

  • Copy Reference action

    Use this action (e.g. using Ctrl+Alt+Shift+C) when having the caret at HOCON key in order to copy full path of the HOCON property.

  • Move Statement Up/Down action which can also move entries in and out of objects

    movestatement.gif

  • Resolution of HOCON includes with navigation

    includeresolution.gif

  • Resolution of HOCON substitutions with navigation

    Substitutions are resolved in the current file, all the included files and finally in all the reference.conf files that can be found on the classpath (e.g. in library JARs). This reflects the way HOCON is usually loaded and resolved in runtime using ConfigFactory.load using Typesafe/Lightbend Config library.

    substitutionresolution.gif

  • HOCON: Go to Prev/Next Definition actions for navigating between subsequent occurrences of the same HOCON path:

    These actions reuse keyboard shortcuts of standard Super Method and Implementation(s) actions (e.g. Ctrl+U and Ctrl+Alt+B)

    gotoprevnext.gif

  • Detection of HOCON path references in string literals of other languages

    NOTE: This only works as long as the HOCON path can be resolved in application.conf files at the root of the classpath (e.g. application.conf must be directly in one of the sources or resources folders of IntelliJ module).

    stringlitrefs.gif

  • Detection of Java/Scala fully qualified class references in HOCON strings

    classreferences.gif

  • Quick Documentation action

    HOCON has no notion of documentation comments but it has two comment styles - # and //. Only the # comments which directly precede a HOCON key will be interpreted as its documentation.

    Quick documentation also displays resolved value of a HOCON key.

    quickdoc.png

  • Find Usages action on HOCON entries

    Find Usages looks for all usages of given HOCON path in the project. This may include other definitions of the same HOCON path or references to that path in HOCON substitutions or string literals (in HOCON and other languages).

  • Autocompletion

    Autocompletion works when overriding configuration options and when referring to them in HOCON substitutions. Suggestions are loaded from current file, all the included files and all the reference.conf files found on the root of the classpath (e.g. in library JARs). This reflects the way HOCON is usually loaded and resolved in runtime using ConfigFactory.load using Typesafe/Lightbend Config library.

    Autocompletion also works in string literals of other languages but it must be invoked explicitly (e.g. with Ctrl+Space) and the path being referred must be resolvable in application.conf files at the root of the classpath (e.g. application.conf must be directly in one of the sources or resources folders of IntelliJ module).

    Autocompletion conveniently displays type and resolved value of suggested HOCON entries and is also integrated with Quick Documentation action.

    autocompletion.gif

intellij-hocon's People

Contributors

adkozlov avatar alefas avatar darthorimar avatar ghik avatar ilinum avatar jamesbrain avatar jastice avatar mutcianm avatar niktrop avatar pavelfatin avatar srtobi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.