Visual Studio 2008 (C# @ Verbatim) 字体和颜色选项
我刚刚阅读了 secretGeek 在 6 分钟内成为一名更好的程序员的 8 种方法 并且非常喜欢关于使硬编码字符串看起来丑陋的技巧。
当我尝试在 Visual Studio 2008 Professional 副本中更改字体和颜色设置以执行此操作时,我发现字符串 (C# @ Verbatim) 选项不在显示项目列表。 Visual C# Express 2008 中列出了该选项。
有谁知道如何解决此问题?
谢谢
I just read secretGeek's fun post on 8 ways to be a better programmer in 6 minutes and really liked the tip on making hard-coded strings look ugly.
When I tried to change the Fonts and Colors setting to do this in my copy of Visual Studio 2008 Professional, I found that the String (C# @ Verbatim) option was not in the Display items list. The option is listed in Visual C# Express 2008.
Does anyone know how to fix this?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的,经过一些实验,这对我有用。
SysInternals regmon 显示VS2008 Pro 的字体和颜色选项存储在注册表项中:
删除该注册表项并重新启动 Visual Studio 会导致该注册表项被重建并恢复字符串 (C# @ Verbatim) 选项。
VS2005 Pro 键中也缺少该选项,所以也许这就是它从未在 2008 年出现的原因。Magenta
over Lime 是否太受虐了?
OK, after a bit of experimentation, this worked for me.
SysInternals regmon showed that the Font And Colors options for VS2008 Pro are stored in the registry key:
Deleting this and restarting Visual Studio caused the key to be rebuilt and restored the String (C# @ Verbatim) option.
The option is missing from the VS2005 Pro key too, so maybe that's why it never appeared in 2008.
Is Magenta over Lime too masochistic??