uh hello guys welcome to this video so
in this video I will show you a c code
formatter inside vs code so if you're
developing C applications in vs code
there is a open-source formatter
specifically built for C applications so
this is actually the extension name c
sharier code formatter it's a fairly
popular package almost
224,000
installs and
uh you have the install button simply
click install and just activate this
extension so as soon as it
activates now you'll be able to write
the or format your C programs so just
install this extension as well which is
the base extension for C so just install
this C and also this C
devkit so this actually helps in writing
C programs it will give you intelligence
features such as autoc complete so just
make sure these two EXT extensions are
also are installed in vs code so what
this extension does this is code
formatter it actually is uh if you write
let me just show you a program here of C
so this is actually a program so let's
suppose if I make un formatting mistake
here if
I my program is not formatted properly
so
if this bracket is there so if you make
any sort of
mistake so now to format this it's very
easy right click and you will see this
option format document withth simply
select this option and for the very
first time you just need
to so it will automatically detect that
it's a c program so it will give you
this choice that uh just format this
with this so you just need
to
enter and as soon as you enter this you
will see it will automatically fix all
the in formatting and it will actually
formit your C
document so you can see if I make this
indentation wrong right here again if I
select format document you will see it
will correct the formatting everything
will be
formatted so sometimes you paste
programs which are not formatted so
without this extension it becomes really
timec consuming task but with this
extension you just have to have a simple
click
after it will automatically run the
entire format the entire program
so this is a very useful extension
definitely install it and they have
their own website as well so if you open
this so clearly mentioned that it's an
open source uh module and it's
completely free to use so it's no need
to any pay for it so you can see it's
completely fast
provides it specifically runs for C so
it doesn't work with any other language
so it's only for
C so personally I've used it for many
days and it has hasn't given me any
problem so it's a fairly good extension
so it works with indentation it actually
does the indentation good so if you have
some spacing right
here it can occur in
anything you can see that so as soon as
you click all the mistakes will
be fixed with one click so you can even
press the shortcut key on the keyboard
uh control shift p to open
the command pallet and here you can just
search for this which is
C or you can simply say format
document here also
so either two ways right click format
document or you can press the shortcut
key control shift V and just write
format document so both the things does
the same things so just install this
extension and use it inside your C
applications so thank you very much for
watching this video and also check out
my website free mediat tools.com which
contains thousands of tools regarding
audio video and image and I will be
seeing you in the next video