Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 577
GEOCHET Avatar asked Nov 06 '08 15:11

GEOCHET


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

like image 168
dmityugov Avatar answered Sep 30 '22 19:09

dmityugov