GitXplorerGitXplorer
c

kotlin-formatter

public
8 stars
2 forks
3 issues

Commits

List of commits on branch main.
Verified
4f9fb22425e51984dd6ed6053e5abcef084c7010

Merge pull request #8 from LewsTherinTelescope/traverse-for-editorconfig

ccestef committed 3 years ago
Unverified
7909dac5c8f41dae458217da3acdbecfd3e8bb7e

Also search the file's sibling directories for config

LLewsTherinTelescope committed 3 years ago
Unverified
54d38ad0546c043d0998558e0f5db3cea29767e2

Handle perm errors when finding editorconfig

LLewsTherinTelescope committed 3 years ago
Unverified
8052f6aa568719365a0d59e0898a261aa161bd44

Check for .editorconfig outside immediate parent

LLewsTherinTelescope committed 3 years ago
Unverified
fc9186969e68a8232911d07568d1291d6a8b62d4

0.0.6

ccestef committed 3 years ago
Unverified
5a00bcfe282f02b691c18c1e36129f2f2e4abb62

Set Unreleased to 0.0.6 in CHANGELOG

ccestef committed 3 years ago

README

The README file for this repository.

Kotlin-Formatter for VSCode

This is just a formatter for Kotlin (.kt) and KotlinScript (.kts)

Requirements

macOS / Linux

Make sure you have ktlint installed before installing this extension

Windows

You need the ktlint jar file and either have it in your project root or specify its location in the vscode settings (ktlintPath)

Using

You can either use the kotlin-formatter.formatKotlin command or set cstef.kotlin-formatter as your default formatter in VScode settings

Format on save

Set cstef.kotlin-formatter as your formatter for kotlin and/or kotlinscript in VScode's settings.json:

    {
        ...
        "[kotlin]": {
            "editor.defaultFormatter": "cstef.kotlin-formatter"
        },
        "[kotlinscript]": {
            "editor.defaultFormatter": "cstef.kotlin-formatter"
        }
        ...
    }