mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2024-11-23 20:42:45 +01:00
896 B
896 B
Some examples of join command with ideajoin
option enabled.
Put set ideajoin
to your ~/.ideavimrc
to enable this functionality.
- Automatic join concatenated lines:
"Hello" + -> "Hello world"
" world!"
- Nested if's:
if (a) { -> if (a && b) {
if (b) { ...
... }
}
}
- Remove braces from one line for / if / while:
if (fail) { -> if (fail) return;
return;
}
- Kotlin one line method:
fun myNumber(): Int { -> fun myNumber(): Int = 42
return 42
}
- Join declaration and initialization:
int a; -> int a = 5;
a = 5;
- Chain call:
sb.append("a"); -> sb.append("a").append("b");
sb.append("b");
And other functions provided by the plugins.