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..
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.