'Ctrl+k, Ctrl+d not available in Visual Studio 2010 working on C++ project

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 ?

enter image description here



Solution 1:[1]

Ctrl+K, Ctrl+F works on code files (C++, C#, VB).

Ctrl+K, Ctrl+D works on document files (HTML, XML, XAML)

Solution 2:[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 cursor back to where it was before.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Lauren Rutledge
Solution 2 Ricardo C