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

左心房为你撑大大i 提交于 2019-12-12 08:26:12

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!