imo it'd be quite cool if there was a way to format using statements like this
const proc = await glide.process.spawn("cat");
{await using writer = proc.stdin.get_writer();
await writer.write("first\n");
await writer.write("second\n");
await writer.write("third");
}
const text = await proc.stdout.text();
compared to the default formatting that currently looks like this
{
await using writer = proc.stdin.get_writer();
await writer.write("first\n");
await writer.write("second\n");
await writer.write("third");
}
where there's less of a visual distinction between the "important" part of the block, the using statement, and the rest of the block.
note: I'm unsure if there's already been discussion about special formatting for using in other places.
imo it'd be quite cool if there was a way to format
usingstatements like thiscompared to the default formatting that currently looks like this
where there's less of a visual distinction between the "important" part of the block, the
usingstatement, and the rest of the block.note: I'm unsure if there's already been discussion about special formatting for
usingin other places.