Support a customisable formatter (custom indent settings, maybe .editorconfig?)
See original GitHub issueby my resolution I need to increase the tabsize from 2 to 4 spaces but it does not work
User settings:
"[dart]":{ "editor.tabSize": 4, "editor.insertSpaces": true, "editor.detectIndentation": false, }
when formatting the document, always use 2 spaces.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:419
- Comments:143 (42 by maintainers)
Top Results From Across the Web
Index of EditorConfig properties - ReSharper - JetBrains
This page lists custom ReSharper EditorConfig properties that you can use to configure code formatting rules, code inspection severity ...
Read more >How can I customize the tab-to-space conversion factor?
By default, Visual Studio Code will try to guess your indentation options depending on the file you open. You can turn off indentation...
Read more >457046 – Support .editorconfig (editorconfig.org) - Bugs
Hi, I'm studying the capability to support .editorconfig inside Eclipse IDE by ... an .editorconfig file, attach a change listener that applies formatting....
Read more >Adjust indents and spacing in Word - Microsoft Support
Change paragraph indents and spacing. Select one or more paragraphs that you want to adjust. Go to Home and then select the Paragraph...
Read more >editorconfig c - You.com | The Search Engine You Control
Both Visual Studio and Visual Studio Code have built-in EditorConfig support for each of the global Visual Studio C++ formatting settings, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m afraid this is by design. The formatter that Dart Code uses is the official one (https://github.com/dart-lang/dart_style) and it does not support changing indenting; it always uses 2 spaces.
I’d love to have an alternative formatter, as I’m not a big fan of dart_style’s opinions, but it’s way down the list of priorities at this time.
I’m gonna keep this issue open and move to the backlog, as I think having a flexible formatter (such as based on editorconfig) is a reasonable request.
Any idea if this is going to be worked on? I mean, it’s not 1989. I have two big-arse monitors, and it’s a little weird to have some Dart plugin developer tell me that all my Dart code needs to fit within the leftmost 1/6th of my editor space.