Fork me on GitHub

SpaceVim

A community-driven Vim distribution


Home | About | Documentation | Development | Community | Sponsors


Layers > lang#java

This layer is for Java development.

Install

To use this configuration layer, add SPLayer 'lang#java' to your custom configuration file.

Mappings

Import mappings:

Mode Key Function ————————————————————- normal import class under cursor insert import class under cursor normal jI import missing classes normal jR remove unused imports normal ji smart import class under cursor normal jii same as insert I import missing imports insert R remove unused imports insert i smart import class under cursor insert ii add import for class under cursor

Generate mappings:

Mode Key Function ————————————————————- normal jA generate accessors normal js generate setter accessor normal jg generate getter accessor normal ja generate setter and getter accessor normal jts generate toString function normal jeq generate equals and hashcode function normal jc generate constructor normal jcc generate default constructor insert s generate setter accessor insert g generate getter accessor insert a generate getter and setter accessor visual js generate setter accessor visual jg generate getter accessor visual ja generate setter and getter accessor

Code formatting

To make neoformat support java file, you should install uncrustify. or download google’s formater jar from:

https://github.com/google/google-java-format

and set ‘g:spacevim_layer_lang_java_formatter’ to the path of the jar.

Hosted on GitHub — Theme by mattgraham