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);
}
First of all, I consider that what you are trying to do will make the code very unreadable and it goes against the standards. But if you really want to do it, here is what I found:
In NeatBeans, go to
Tools > Options. TheOptionswindow will pop up. ClickEditorand then select theFormattingtab. In theLanguagedropdown, selectC. In theCategorydropdown, selectFormatting Style. Check the optionOverride Global Options. Then bellow set the propertyIndent Sizeto0.