Formatter settings: expand example to demonstrate some of the new options
This commit is contained in:
+17
-4
@@ -48,10 +48,23 @@ public class JetLanguageCodeStyleSettingsProvider extends LanguageCodeStyleSetti
|
|||||||
" return 0\n" +
|
" return 0\n" +
|
||||||
" }\n" +
|
" }\n" +
|
||||||
" private fun foo2():Int {\n" +
|
" private fun foo2():Int {\n" +
|
||||||
" return foo1(12,\n" +
|
" try {" +
|
||||||
" 13,\n" +
|
" return foo1(12,\n" +
|
||||||
" 14\n" +
|
" 13,\n" +
|
||||||
" )\n" +
|
" 14\n" +
|
||||||
|
" )\n" +
|
||||||
|
" }" +
|
||||||
|
" catch (e: Exception) {" +
|
||||||
|
" return 0" +
|
||||||
|
" }" +
|
||||||
|
" finally {" +
|
||||||
|
" if (true) {" +
|
||||||
|
" return 1" +
|
||||||
|
" }" +
|
||||||
|
" else {" +
|
||||||
|
" return 2" +
|
||||||
|
" }" +
|
||||||
|
" }" +
|
||||||
" }\n" +
|
" }\n" +
|
||||||
" private val f = {(a: Int)->a*2}\n" +
|
" private val f = {(a: Int)->a*2}\n" +
|
||||||
"}";
|
"}";
|
||||||
|
|||||||
Reference in New Issue
Block a user