Ctrl+k、Ctrl+d 在处理 C++ 的 Visual Studio 2010 中不可用项目
我习惯在 Visual Studio 2010 C# 中使用 Ctrl+k、Ctrl+d 来格式化整个文档但当我更改 C++ 时,我意识到它不再可用。
要格式化文档,我必须选择一段代码并使用 Ctrl+k、Ctrl+f 来设置所选代码的格式。
有人可以告诉我如何启用 Ctrl+k、Ctrl+d 吗?是否可以 ?
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 ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Ctrl+K、Ctrl+F 适用于代码文件(C++、C#、VB)。
Ctrl+K、Ctrl+D 适用于文档文件(HTML、XML、XAML)
Ctrl+K, Ctrl+F works on code files (C++, C#, VB).
Ctrl+K, Ctrl+D works on document files (HTML, XML, XAML)
如果您对解决方法感到烦恼 Ctrl+a、Ctrl+k、Ctrl+f 因为您最终位于文档的末尾,只需添加Ctrl+- 将光标返回到之前的位置。
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.