Skip to content

Commit

Permalink
Clean up comments of IDEA ettings with editorconfig
Browse files Browse the repository at this point in the history
Most of comments are tautologies of Option #4
  • Loading branch information
ganadist committed Jan 23, 2022
1 parent 6fe4e26 commit d0aa9f3
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -414,40 +414,27 @@ Add the following .editorconfig properties on project

```ini
[{*.kt,*.kts}]

## `Set from...` on the right -> (`Predefined style`) -> `Kotlin style guide` (Kotlin plugin 1.2.20+).
ij_kotlin_code_style_defaults = KOTLIN_OFFICIAL

## open `Code Generation` tab
# uncheck `Line comment at first column`;
ij_kotlin_line_comment_at_first_column = false
# select `Add a space at comment start`
ij_kotlin_line_comment_add_space = true

## open `Imports tab`
# select `Use single name import` (all of them);
# These options can keep to use single name import
ij_kotlin_name_count_to_use_star_import = 2147483647
ij_kotlin_name_count_to_use_star_import_for_members = 2147483647

## open `Wrapping and Braces` tab
# change `Keep Maximum Blank Lines` / `In declarations` & `In code` to 1
ij_kotlin_keep_blank_lines_in_declarations = 1
ij_kotlin_keep_blank_lines_in_code = 1
# and `Before '}'` to 0
ij_kotlin_keep_blank_lines_before_right_brace = 0

## (optional but recommended) open `Wrapping and Braces` tab
# uncheck `Function declaration parameters` / `Align when multiline`.
# optional but recommended
ij_kotlin_align_multiline_parameters = false

## (optional but recommended) open `Tabs and Indents` tab
# change `Continuation indent` to the same value as `Indent` (4 by default)
# optional but recommended
ij_continuation_indent_size = 4

## Android specific rules
# Other: Insert imports for nested classes -> false
# Android specific rules
ij_kotlin_import_nested_classes = false
# Import Layout: import all other imports, then import all alias imports
ij_kotlin_imports_layout = *,^
```

Expand Down

0 comments on commit d0aa9f3

Please sign in to comment.