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

Automatically break curly braces on a newline when writing blocks

$
0
0

I want to get an automated format for my blocks (functions, loops, whatever) when I'm typing the curly braces.

I'm using C. At first I thought it had to do with my clang config, but then I moved on to different languages and it was still behaving the same. I'm suspecting it has something to do with my VS Code.

I want this to happen (here in action)

int Blah()
{
}

Currently I get the regular, non-automatic version (this)

int Blah(){
}

The first one is done through Visual Studio Community, using C#. Second is C in VSCode.
Though I tried with C# or anything else (in vscode) but it doesn't do it anyways. Also, I'm using a Vim extension, but the issue persisted even when I turned it off.

Could anyone give me some pointers? I'm a bit lost. I mean, this -should- be possible to achieve, right?


Viewing all articles
Browse latest Browse all 98786

Latest Images

Trending Articles



Latest Images

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