Visual Studio 2010 中的缩写菜单在哪里?

发布于 2024-12-27 14:29:57 字数 322 浏览 3 评论 0原文

使用以下代码,Visual Studio + Resharper 通知我以下示例类不符合命名约定:

public class AB2CManager {
  // TODO: Write some code
}

当我将光标放在类名称上并按 Alt+Enter它让我可以选择将缩写词 AB 添加到我的缩写词列表中。然而,在我的例子中,AB2C 是完整的缩写。

如何手动编辑此首字母缩略词列表?我想添加完整的首字母缩略词,以便假设的类 ABManager 仍然不被 IDE 接受。

With the following code Visual Studio + Resharper notifies me that the following example Class does not meet the naming convention:

public class AB2CManager {
  // TODO: Write some code
}

When I put my cursor on the class name and press Alt+Enter it gave me the option to add the acronym AB to my acronyms list. However, in my case AB2C is the full acronym.

How can I manually edit this list of acronyms? I would like to add the full acronym so that hypothetical class ABManager is still not accepted by the IDE.

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

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

发布评论

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

评论(1

烏雲後面有陽光 2025-01-03 14:29:58

http://www.jetbrains.com/resharper/webhelp50/Coding_Assistance__Naming_Style.html#To_create_a_list_of_abbreviations

如果您只想编辑缩写列表,仅使用表格的下半部分;您可以在其中输入、删除或更新任何条目。

例如,在我当前的项目中,我有一个名为 NIFEmisor 的字段,NIF 是西班牙 ID 号。我已将“NIF”添加到该框中,不再有麻烦。

http://www.jetbrains.com/resharper/webhelp50/Coding_Assistance__Naming_Style.html#To_create_a_list_of_abbreviations

If you just want to edit the list of abbreviations, use only the lower part of the form; where you can enter, delete or update any entry there.

For example, on my current project I have a field called NIFEmisor, NIF being a spanish ID number. I've added 'NIF' to that box and no more trouble.

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