Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97313

Configuring dfmt to allow one element per line

$
0
0

With dfmt, the source code formatter for D language, the following code:

auto carModels = [
    "alpha", 
    "bravo", 
    "charlie", 
    "delta"
];

gets re-formatted into:

auto carModels = ["alpha", "bravo", "charlie", "delta"];

Is there a way to make the formatter keep the elements one per line as specified in the original, without turning off dfmt for that line?

I am using the vs-code D language extension called code-d, it invokes dfmt when formatting files.


Viewing all articles
Browse latest Browse all 97313

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>