home.social

#editorconfig — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #editorconfig, aggregated by home.social.

  1. What’s a good unopinionated TypeScript / JavaScript CLI code formatting tool, which I can configure with EditorConfig, that only formats the indenting? #TypeScript #EditorConfig

  2. Late evening release of a blog post I've worked on today on a day off (it's enjoyable, OK?) on what I did to make the combo of the Bash language server and shfmt work with Editorconfig settings for Bash script files that don't have extensions. In Neovim 🚀

    Share & enjoy! qmacro.org/blog/posts/2025/09/

    #Neovim #LSP #Bash #Editorconfig #Shfmt

  3. Trying out @Posit’s `air` formatter for and super impressed so far. It even respects my which I wasn’t expecting to see in the R world.

    I spent some time packaging it in a local container because I’m not crazy about the `curl script | sh` trend of binary installs, but it was pretty painless to throw it in a slim image and land somewhere a bit more controlled.

    Finally I can format on save in a blink. Looking forward to it including the rest of the LSP

  4. one of the coolest config changes: indent 2 instead of 4. improves readability, more side-by-side views
    #editorconfig #dotnet

  5. God damn, when did .editorconfig become a thing? This is brilliant!

    #PHP #IDE #EditorConfig

  6. #WebDev question: Is it recommended to use the #editorconfig extension AND #prettier extension for visual studio code? marketplace.visualstudio.com/i

    Or is the prettier extension enough?

    (I have a repo with '.editorconfig' and '.prettierrc', I know that prettier parses editorconfig as well)

    #vscode #linting #formatting #webdevelopment

  7. Editing with EditorConfig

    #EditorConfig helps to codify your #CSharp coding styles for your #dotnet project.
    It's supported by many IDEs and code editors, and soon, also by our #Roslyn tool.

    on 2024-11-04 (Monday)
    at 18:00 UTC

    #2codeOrNot2code

    youtube.com/watch?v=s3Fi0joawE

  8. @cwilcox808 indent_size = 2
    indent_style = tab

    Commit an #EditorConfig file to your source repo so contributors can conform to your preferred #coding style per-language regardless of their editor: EditorConfig.org

    #programming

  9. Whoa, when did #VisualStudio add this sweet #editorconfig editor? 🤯 I often open .editorconfig files in VS Code and modify the text, but this is nice since you don't need to know the magic text values to use

  10. I know Prettier supports #EditorConfig, however I am curious to know, is there is a less opinionated way that you can reformat an existing code base?

  11. Thinking today about how I'm grateful for Hong Xu's work on EditorConfig.

    He put so much effort into grokking the plugin systems for so many different editors and writing most of the plugins for .editorconfig files in the early days of the project.

    His work allowed me to spend more time on the core plugins and on marketing.

    Without plugin support, wide-spread adoption would have made little sense.

    #EditorConfig #gratitude

  12. EditorConfig is awesome, but I don't use it very often. Most of the time, language-specific formatters and linters, as well as my IDE's built-in features, are enough to keep a project well-formatted.

    However, today, EditorConfig helped me combat my IDE's weakness 💚 angelika.me/2024/03/29/how-to-

    #EditorConfig #WebStorm #WebDev

  13. I had good hopes for #EditorConfig to be a standardized way to config a bunch of parameters for my projects.

    OTOH it appears that the current implementation went down the route of "It's up to each plugin to decide what to support and how" so I can't find most of the utility once I take into consideration that I already enforce formatting with clang-format.

    Once again, it's all in the schema: flameeyes.blog/2020/05/14/all-

  14. #PSA If you are using #VSCode with #EditorConfig and have `editor.detectIndentation` enabled: Disable that.
    It overwrites your .editorconfig settings.

    #CSharp #VisualStudio #VisualStudioCode

  15. "trim_trailing_whitespace = false" for *.md files?
    Believe it or not, straight to jail.
    #editorconfig #markdown

  16. #dotnet #editorconfig

    Do we favour

    [*.csproj]
    indent_size = 2

    or

    [*.csproj]
    indent_size = 4

  17. @ovid #EditorConfig: learn it, set it in your projects, enforce it (many editors “just work” with it): editorconfig.org

  18. PSA: If you’re working on #opensource code, or basically collaborating on #code with anyone, make sure that your #editor or #IDE understands #EditorConfig!

    editorconfig.org/

    It’s a really helpful way for teams to define basic style settings for the project, which ensures consistent files and reduces unnecessary merge conflicts.

    #codestyle #collaboration #editing

  19. CW: re: work, codecs gibberish

    @brion You can fix it! Setup editorconfig.org/ for your editor and propose upstream a patch introducing an `.editorconfig` indicating their 2-space indent:

    root = true
    [*]
    end_of_line = lf
    insert_final_newline = true
    charset = utf-8
    indent_style = space
    indent_size = 2

    #EditorConfig , you will never look back!

  20. Another drawback of generating code: It does not automatically adhere to your coding style. So just having an #EditorConfig is not enough, you absolutely need something else that fixes styling for you. That is especially a problem for something like #YAML, for which I not always have some linter setup.

  21. Began adding some of the code style rules in the category "Unnecesary code" rules to my EditorConfig Wizard. Still, more to add. 😁
    Project: github.com/KristofferStrube/Ed
    Demo: kristofferstrube.github.io/Edi
    #editorconfig #blazor #dotnet #csharp

  22. I'm trying to come up with some sample code that would make the two EditorConfig rule options at the bottom distinguishable. Is there some example or are they actually just the same?
    #dotnet #csharp #editorconfig

  23. 2 for and @unoplatform is coming along nicely🙂

    -🔥Windows C# updates UI on Ctrl+S
    - All 7 target platforms, 11
    - Nested view files in sln explorer
    - Fully + enabled dotnet new template

  24. Picked up some tasks on a #dotnet project in my #DayJob and I'm really #triggered by the way someone has set it up. I really dislike some of the #fxcop rules and #editorconfig settings that are being enforced. My #resharper is going ballistic. I'm fighting the urge to change all the settings to follow the dotnet style guidlines. #MustNotRefactor

  25. Picked up some tasks on a #dotnet project in my #DayJob and I'm really #triggered by the way someone has set it up. I really dislike some of the #fxcop rules and #editorconfig settings that are being enforced. My #resharper is going ballistic. I'm fighting the urge to change all the settings to follow the dotnet style guidlines. #MustNotRefactor