dart_style VS Dart-Code

Compare dart_style vs Dart-Code and see what are their differences.

dart_style

An opinionated formatter/linter for Dart code (by dart-lang)

Dart-Code

Dart and Flutter support for VS Code (by Dart-Code)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
dart_style Dart-Code
14 14
625 1,455
0.6% 0.6%
9.2 9.6
7 days ago 6 days ago
Dart TypeScript
BSD 3-clause "New" or "Revised" License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

dart_style

Posts with mentions or reviews of dart_style. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-19.
  • Why is Prettier rock solid?
    13 projects | news.ycombinator.com | 19 Feb 2024
    > Oh I'm curious why you're rewriting it?

    The primary driver is that we're moving to a fairly different formatting style: https://github.com/dart-lang/dart_style/issues/1253

    The formatter works sort of like a compiler in that it parses the code, translates it to an internal representation, does optimization on that IR, and then outputs final code. The main difference is that the "final code" is also source code, and the "optimization" is line splitting.

    The old IR grew organically over time and got increasingly difficult to work with. It baked certain formatting choices directly into the IR (mainly indentation) which line splitting then had no control over. For example, given a function call like:

        someLongFunctionName(some + long + argument + expression, [firstElement, anotherElement, aThirdElement]);
  • The Record type is coming to Dart/Flutter!
    3 projects | /r/FlutterDev | 25 Nov 2022
    in your analysis_options.yaml. The formatter doesn't understand the new syntax yet, though.
  • Linter actually that important for a lot of minor things?
    3 projects | /r/FlutterDev | 29 Jun 2022
    Sorry, perhaps im not quite familiar with the GitHub issues you’re chatting about, but a quick search shows the Dart team actually made a very similar argument about laptops and diffs as the first reply in a thread about the 80 character max: https://github.com/dart-lang/dart_style/issues/833
  • Custom Formatting in VS Code
    2 projects | /r/dartlang | 1 Nov 2021
    The standard Dart extension only supports formatting using the SDK-supplied formatter (dart_style) which (by design) is not configurable (although it can be turned on/off with the dart.enableSdkFormatter setting).
  • 10 Best Visual Studio Code Extensions for Flutter Development
    6 projects | dev.to | 14 Jun 2021
    Flutter itself provides formatting choices, however, it only formats Dart files and it doesn’t re-order the code. Flutter formats the code based on these formatting rules.
  • Anyone else seeing dartfmt hanging VSCode lately?
    7 projects | /r/FlutterDev | 2 Jun 2021
    There are some other possibilities - such as complex code being slow to format (for example I hit https://github.com/dart-lang/dart_style/issues/1022 and originally thought it was a repro for this issue), or that the server is busy doing its initial synchronous scan of the workspace, though those should be temporary and the format should eventually complete so it's probably not what most people are reporting here.
  • Dart 2.13 introduces Typedefs for All Types (non-function type aliases)
    2 projects | /r/FlutterDev | 29 Mar 2021
    Follow this issue: https://github.com/dart-lang/dart_style/issues/993. It looks like support has landed there, but no version of dart_style is published with support or in the sdk as of now.
  • dartanalyzer to know function type
    3 projects | /r/dartlang | 16 Feb 2021
    dart_style for checking format programatically

Dart-Code

Posts with mentions or reviews of Dart-Code. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-09.

What are some alternatives?

When comparing dart_style and Dart-Code you can also consider the following projects:

dart-code-metrics - Software analytics tool that helps developers analyse and improve software quality.

vscode-live-server - Launch a development local Server with live reload feature for static & dynamic pages.

sdk - The Dart SDK, including the VM, dart2js, core libraries, and more.

flutter-examples - This repository contains the Syncfusion Flutter UI widgets examples and the guide to use them.

dart-quicktype - Convert JSON to Dart model class. Implement from Quicktype.

markdownlint - A Node.js style checker and lint tool for Markdown/CommonMark files.

pub-dev - The pub.dev website

vscode-colorize - A vscode extension to help visualize css colors in files

Visual Studio Code - Visual Studio Code

Vim - :star: Vim for Visual Studio Code

vscode-restclient - REST Client Extension for Visual Studio Code