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.

Answers


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 EditAdvanced.


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..


Need Your Help

iPhone - how to track touches and allow button taps at the same time?

iphone uibutton uitouch

I'm wondering how to track touches anywhere on the iPhone screen and still have UIButtons respond to taps.

My app won't show up on the chooser dialog for android.intent.action.VIEW with mime type video/* only on Marshmallow

android android-intent android-6.0-marshmallow android-filter android-intent-chooser

Basically when an app shares a video url my app is supposed to show up on the list but it doesn't. Neither does MXPlayer but the Google Photos media player shows up fine as well as allcast (which h...