How can I make the format document shortcut work for C source files in Visual Studio 2008?
How can I make Ctrl + K + D work in a pure C file? I really enjoy the auto formatting in C#, and I would like to have the same functionality in C as well.
I am using Visual Studio 2008, but it would probably be helpful if this worked in Visual Studio 2005 as well.
In Visual Studio 2003, Ctrl + K, Ctrl + F let you format a selection. This and other key combinations to format text can be found in menu Edit → Advanced.
In Visual Studio 2010 and 2008 - the formatting of a selection can be achieved by CTRL+E CTRL+F..
I suppose since C/C++ can be peppered with loads of preprocessor directives and defines and such - formatting the entire document would be too difficult to process..