• tunetardis@lemmy.ca
    link
    fedilink
    arrow-up
    15
    ·
    8 months ago

    I tried it briefly. It certainly is a lot snappier than Atom ever was, I’ll give it that. Seemed to be pretty good with Python, but when I opened some C++ source, it went around reformatting my indentation and replaces tabs with spaces. I will have to see if there is a way to disable all that, as I found it obnoxious.

      • tunetardis@lemmy.ca
        link
        fedilink
        arrow-up
        7
        ·
        8 months ago

        It was more than just tab conversion. For example, it decided on its own that:

        if(...) {
            ...
        }
        else {
            ...
        }
        

        would look better like:

        if(...) {
            ...
        } else {
            ...
        }
        

        I mean I guess I could live with that, but really? I imagine there’s some config where you can disable all this, but it just doesn’t seem worth some giant git commit every time I touch a file with the editor.

        • Flipper@feddit.de
          link
          fedilink
          arrow-up
          3
          ·
          8 months ago

          My guess is that it has that default because they use Rust. Everyone uses rustfmt so everything looks the same and if you always format before a commit you never get massive diffs.

          Most rust projects I’ve seen even have a ci job to check the formatting with rustfmt.