Dart-Code
dart_style
Dart-Code | dart_style | |
---|---|---|
14 | 14 | |
1,475 | 645 | |
0.3% | 0.8% | |
9.6 | 9.2 | |
5 days ago | 7 days ago | |
TypeScript | Dart | |
MIT License | BSD 3-clause "New" or "Revised" License |
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-Code
-
Something is wrong in Dart analyzer for VSCode in v3.62.0
If it is related to the Dart/Flutter plugin, you should file a bug for that project and not for Dart or Flutter.
-
Help me make VSCode telemetry clearer and require consent by upvoting this issue
You say that only thing I did was open an issue and take the credit. I take that feedback constructively, but one tiny contribution I did though is make the Dart extension use the new API.
-
why vscode slow, even when my specs are decent?
I can't help with the first few, but if you're seeing slow performance writing Dart/Flutter, please file an issue at https://github.com/Dart-Code/Dart-Code/issues.
-
VScode Extension Error - URI was not an absolute file path (missing drive letter)
It would probably be better if you file an issue here: https://github.com/Dart-Code/Dart-Code/issues
-
Is there a VSCode extension that turns on closing labels for Dart/Flutter on items with curly braces based on the number of lines within them (functions, loops, switches, classes, etc.)?
You might want to look into Dart-Code how these closing labels are generated and then create another VSCode plugin to create your kind of code decoration. I had a 1min glance at the plugin source code and I think, this API is responsible to creating such decorations.
-
Creating a VSCode Extension IN Flutter, not for Flutter
The DevTools are a stand alone web application that are integrated into VSC using a VSC-specific webview component. This integration is written in TypeScript. See here.
-
Custom Formatting in VS Code
I'm not aware of any other formatters for Dart. There's an open issue about more flexible formatting at https://github.com/Dart-Code/Dart-Code/issues/914 but it's not something being actively worked on. If someone was to create their own formatter I've offered in that thread to provide some pointers for wrapping it up into a VS Code extension (the Dart extension already supports disabling its own formatter, although VS Code now allows you to more easily select a different formatter).
-
Need help with a simple extension
Also, there's already an official extension for Dart which is open source, have you thought about contributing this feature to that extension?
-
Announcing the Flutter 2.5 stable release
This fix: https://github.com/Dart-Code/Dart-Code/issues/3332
- Anyone else seeing dartfmt hanging VSCode lately?
dart_style
-
Why is Prettier rock solid?
> 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!
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?
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
-
What is the best flutter formatter?
Nope, but there is a proposal to set line length in pubspec.yaml: https://github.com/dart-lang/dart_style/issues/918
- Imagine that someone passed a law—literally a criminal offense—if you formatted your code longer than 80 columns. You were forced to comply. Do you honestly believe that your engineering productivity or overall quality of life as a human on Earth would be measurably negatively impacted?
-
Custom Formatting in VS Code
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
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.
- Flutter’s take on the 2-space indent code style
-
Anyone else seeing dartfmt hanging VSCode lately?
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.
What are some alternatives?
vscode-live-server - Launch a development local Server with live reload feature for static & dynamic pages.
dart-code-metrics - Software analytics tool that helps developers analyse and improve software quality.
sdk - The Dart SDK, including the VM, JS and Wasm compilers, analysis, 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.
vscode-colorize - A vscode extension to help visualize css colors in files
fpdart - Functional programming in Dart and Flutter. All the main functional programming types and patterns fully documented, tested, and with examples.
Vim - :star: Vim for Visual Studio Code
pub-dev - The pub.dev website
Visual Studio Code - Visual Studio Code