Ctrl+k、Ctrl+d 在处理 C++ 的 Visual Studio 2010 中不可用项目

发布于 2024-12-26 05:01:01 字数 380 浏览 4 评论 0原文

我习惯在 Visual Studio 2010 C# 中使用 Ctrl+kCtrl+d 来格式化整个文档但当我更改 C++ 时,我意识到它不再可用。

要格式化文档,我必须选择一段代码并使用 Ctrl+kCtrl+f 来设置所选代码的格式。

有人可以告诉我如何启用 Ctrl+kCtrl+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 ?

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

只为守护你 2025-01-02 05:01:01

Ctrl+KCtrl+F 适用于代码文件(C++、C#、VB)。

Ctrl+KCtrl+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)

凉城 2025-01-02 05:01:01

如果您对解决方法感到烦恼 Ctrl+aCtrl+kCtrl+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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文