我无法在 Visual Studio 2010 中编辑选定的文本前景色。有人知道如何执行此操作吗?

发布于 2024-08-21 08:31:03 字数 168 浏览 4 评论 0原文

让我向您展示:

alt text

如您所见,“项目前景”已禁用。

我想相信我这边有问题,因为能够选择用于编程的颜色是程序员的基本权利。任何人都不应该剥夺这一功能而不受惩罚。

Let me show you:

alt text

As you can see "Item foreground" is disabled.

I want to believe there's something wrong on my end because being able to choose the colors you use to program in is a basic right for a programmer. No one should ever take that feature away and go unpunished.

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

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

发布评论

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

评论(2

末が日狂欢 2024-08-28 08:31:03

我刚刚写了一个扩展来执行此操作。您可以在 Visual Studio Gallery 上下载扩展 或直接从 Visual Studio 中的扩展管理器(搜索我的名字或扩展的名称“选择前景”)。

一些警告:

  1. 我只是将它们放在一起,所以我不对正确性做出任何广泛的保证。
  2. 它使用不同的字体和颜色项目,名为“选择前景”,而不是常规的“选定文本”项目。它将(按字母顺序)朝底部。
  3. 更改选择时会出现一定程度的性能下降。这可以改进,但我还没有时间这样做。

另外,如果您想进行任何更改,可以获取 github 上的源代码

如果您有任何意见,可以将其留在我的博客。我可能会在下周左右写一篇关于此扩展的文章。

I just wrote an extension that does this. You can download the extension on the Visual Studio Gallery or directly from the Extension Manager in visual studio (search for my name or the name of the extension, "Selection Foreground").

A few caveats:

  1. I just threw this together, so I don't make any extensive guarantees of correctness.
  2. It uses a different fonts and colors item, named "Selection Foreground", instead of the regular "Selected Text" item. It'll be (alphabetically) towards the bottom.
  3. There will be some amount of performance degradation while changing the selection. This can be improved, but I haven't had time to do so yet.

Also, you can grab the source on github, if you'd like to make any changes.

If you have any comments, you can leave them on my blog. I'll probably write a post about this extension in the next week or so.

烈酒灼喉 2024-08-28 08:31:03

似乎是 按设计因为选定区域现在保留语法突出显示:

鉴于这个新的小功能,我们特意在“工具”->“选项”->“环境”->“字体和颜色”中禁用了选定文本的前景色选项。由于选定的文本没有单一前景色,而是保留未选择时的任何语法颜色,因此选定文本前景色的选项对于 Visual Studio 2010 没有意义。对于 Beta2,工具 -> 选项预览for Selected Text 始终显示 VS 2008 风格的白色前景色,我们意识到这可能会令人困惑。

Seems to be by design because selected areas now retain syntax highlighting:

In light of this new mini-feature, we intentionally disabled the foreground color option for Selected Text in Tools->Options->Environment->Fonts and Colors. Because selected text doesn’t have a single foreground color but instead retains whatever syntax coloring it had when not selected, an option for selected text foreground color doesn’t make sense for Visual Studio 2010. For Beta2, the Tools->Options preview for Selected Text always shows the VS 2008-style white foreground color, which we realize can be confusing.

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