如何在 Visual Studio 中更改实例化对象的字体颜色
我知道环境 > 中的颜色发生了变化 字体和颜色,但我还没有找到该对象是哪个显示项目。
有人可以告诉我如何为以下代码着色:
lblMessage.Text = "您已经成功回答了我的问题!"
我有粉红色的字符串,我想要紫色的 lblMessage 和浅绿色的 .Text。
对我来说,颜色越深,“变化”就越少。 我不会经常更改对象名称,我会更频繁地更改属性并且总是更改字符串 - 尽管我对此还有另一个问题,我稍后会发布。
谢谢
I know the colours are changed in Environment > Fonts and Colors but I haven't found out which Display Item the object is.
Can someone please tell how I can colour the following code:
lblMessage.Text = "You have successfully answered my question!"
I have the string coloured pink, I would like the lblMessage purple and the .Text a light green.
For me the darker the colour the less it will "change". I won't often change object names, I'll more often change properties and am always changing strings - although I have another question about this that I'll post later.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
转到环境>; 字体和颜色> 显示项目并更改
是的,我不认为你能做到这一点。 :)
Go to Environment > Fonts and Colors > Display Items and change
Yeah, I don't think you can do that. :)
如果您使用像 Visual Assist 这样的第三方插件,这是可能的。 它允许您为类、变量、宏和函数(以及其他功能)分配不同的颜色。
This is possible if you use a 3rd party addin like Visual Assist. It lets you assign different colors to classes, variables, macros and functions (among other features).