In pure Kotlin projects, the recommended directory structure follows the package structure with the common root package omitted. Source code organization Directory structure Additional inspections that verify other issues described in the style guide (such as naming conventions) are enabled by default. Switch on Incorrect formatting inspection. Go to Settings/Preferences | Editor | Inspections | General. Verify that your code follows the style guide Go to Settings/Preferences | Editor | Code Style | Kotlin. You can configure them to automatically format your code in consistence with the given code style. Two most popular IDEs for Kotlin - IntelliJ IDEA and Android Studio provide powerful support for code styling. Here we provide guidelines on the code style and code organization for projects that use Kotlin. Commonly known and easy-to-follow coding conventions are vital for any programming language.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |