问题
I got used to use Ctrl+k, Ctrl+d for formatting whole document while in Visual Studio 2010 C# but when I changed C++ I realise that it's no longer available.
To format the document I have to select a piece of code and use Ctrl+k, Ctrl+f to format the selected code.
Can someone tell me how to enable Ctrl+k, Ctrl+d ? Is it possible ?

回答1:
Ctrl+K, Ctrl+F works on code files (C++, C#, VB).
Ctrl+K, Ctrl+D works on document files (HTML, XML, XAML)
回答2:
If you are annoyed by the workaround Ctrl+a, Ctrl+k, Ctrl+f because you end up at the end of your document, just add Ctrl+- to bring the curser back to where it was before.
来源:https://stackoverflow.com/questions/8812741/ctrlk-ctrld-not-available-in-visual-studio-2010-working-on-c-project