I press Ctrl,K + Ctrl,D but it doesn't work and C# code doesn't format.
Format document will format the document based upon the rules that are defined by the VS settings and any applied .editorconfig file. It will not however resolve all formatting issues as sometimes there is no valid formatting that makes sense.
In your specific case format document won't do anything because it doesn't see anything wrong. You have lined up your curly braces and indentation inside an initializer expression is not enforced. Hence the format command isn't going to do anything for it. In general, for a single block of code you can remove and add back a closing curly and/or a semicolon (and save if you have enabled the option) and the editor will reformat that block of code. If it doesn't do anything then format document probably won't either.
The only formatting I see that you might have wanted is to line up the object initializer expression with the declaration but that isn't an option in the VS formatting options AFAIK. You might be able to get this behavior using an extension such as CodeRush or ReSharper.
6 people are following this question.