Netbeans C code format
===

I am using NetBeans for my C coding and I would like to know how to change the format for it. I would like it to appear like this when I pres enter for a new line:

    int main(int argc, char** argv)
{

int x;

void xzy()
  {
	
}

printf("etc...etc..etc..");
    
return (EXIT_SUCCESS);
}

Basically to the point where everything starts at the beginning of the line rather than this:

    int main(int argc, char** argv)
{
        
         int x;
         void xzy(){
	
    }
         printf("etc...etc..etc..");
    
        return (EXIT_SUCCESS);
}


Anyone have a solution? Help is appreciated.