mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-11 22:50:49 +00:00
45 lines
519 B
Text
45 lines
519 B
Text
![]() |
Code:
|
||
|
(lambda ()
|
||
|
(setq indent-tabs-mode nil)
|
||
|
(setq java-ts-mode-indent-offset 2)
|
||
|
(java-ts-mode)
|
||
|
(indent-region (point-min) (point-max)))
|
||
|
|
||
|
Point-Char: |
|
||
|
|
||
|
Name: Basic
|
||
|
|
||
|
=-=
|
||
|
public class Basic {
|
||
|
public void basic() {
|
||
|
return;
|
||
|
}
|
||
|
}
|
||
|
=-=-=
|
||
|
|
||
|
Name: Empty Line
|
||
|
|
||
|
=-=
|
||
|
public class EmptyLine {
|
||
|
public void emptyLine() {
|
||
|
|
|
||
|
}
|
||
|
}
|
||
|
=-=-=
|
||
|
|
||
|
Name: Statements
|
||
|
|
||
|
=-=
|
||
|
if (x) {
|
||
|
for (var foo : foos) {
|
||
|
|
|
||
|
}
|
||
|
} else if (y) {
|
||
|
for (int i = 0; x < foos.size(); i++) {
|
||
|
return;
|
||
|
}
|
||
|
} else {
|
||
|
return;
|
||
|
}
|
||
|
=-=-=
|