Visual Studio 2008的黑色主题,Dark Theme + Consolas字体

[color=gray]写在前面:
这篇东西好难定位。这个主题不是我从头开始原创的,但帖里的字都是自己打得,而且配色方案和字体也跟参考的不同——但仍然算不上原创。又不是转载。只好归到随笔了。这主题的分类方式好僵硬 =.=[/color]

昨天读了[url=http://weblogs.asp.net/jgaylord/default.aspx]Jason Gaylord[/url]的[url=http://weblogs.asp.net/jgaylord/archive/2008/08/07/visual-studio-fonts-and-colors.aspx]Visual Studio Fonts and Colors[/url]一文之后,很是兴奋。早先看John Lam在做一个IronRuby的演示的时候发现他的Visual Studio用的是黑色的配色方案,觉得很不错;Emacs里这样的黑底黄色的配色方案也很流行。一直就想自己也试试的,但一直也没弄。这回算是找到了个不错的参考方案。

直接采用Gaylord版本的配色方案的截图:
[img]http://rednaxelafx.iteye.com/upload/picture/pic/20101/ab43ef36-774b-3e36-9cd7-4e20ea41040b.png[/img]

用了微软提供的Consolas字体之后觉得看起来挺舒服的,所以我的配色方案首先需要用这个字体。从下面链接来获得Consolas字体:
[url=http://www.microsoft.com/downloads/details.aspx?familyid=22e69ae4-7e40-4807-8a86-b3d36fab68d3]Consolas Font Pack for Microsoft Visual Studio 2005 or 2008[/url]

换用Consolas字体后的截图:
[img]http://rednaxelafx.iteye.com/upload/picture/pic/20103/62579fb8-ea12-34db-88b0-56e07f6d6372.png[/img]

然后,在Gaylord的版本的基础上,我另外做了些调整来配合我自己的习惯。下面是我的配色方案的细节:
(不详细说明的是指foreground色;大括号里的是Custom颜色的R/G/B值;未提及的配色项选默认)

Font:Consolas, 9pts

[list][*]Plain Text: White foreground, and {42, 42, 42} background
[*]Brace Matching (Rectangle): { 150, 145, 37 }
[*]Code Snippet Field: { 1, 143, 133 }
[*]Comment: {0, 217, 108}
[*]Compiler Error: Red
[*]CSS Comment: {0, 217, 108}
[*]CSS Keyword: Cyan
[*]CSS Property Value: Cyan
[*]CSS Selector: White
[*]CSS String Value: {238, 125, 125}
[*]HTML Attribute Name: {255, 120, 120}
[*]HTML Attribute Value: {108, 182, 255}
[*]HTML Comment: {0, 217, 108}
[*]HTML Element Name: Red
[*]HTML Entity: {128, 128, 255}
[*]HTML Operator: Silver
[*]HTML Server-Side Script: Silver foreground, and {128, 64, 0} background
[*]HTML Tag Delimiter: Silver
[*]Identifier: {253, 223, 57}
[*]Keyword: {244, 122, 0}
[*]Preprocessor Keyword: Magenta
[*]String: {238, 125, 125}
[*]String (C# @ Verbatim): {238, 125, 125}
[*]User Types: {179, 179, 0}
[*]User Types (Delegates): {179, 179, 0}
[*]User Types (Enums): {179, 179, 0}
[*]User Types (Interfaces): {179, 179, 0}
[*]User Types (Value Types): {179, 179, 0}
[*]Visual Basic Read Only Marker: Black
[*]Warning: {0, 166, 0}
[/list]

我在使用黑色主题前,用Consolas字体的效果:
[img]http://rednaxelafx.iteye.com/upload/picture/pic/20129/93f8d89a-5a2d-3228-90b6-2cfa4dfc9a8d.png[/img]

用了上面的黑色主题后:
[img]http://rednaxelafx.iteye.com/upload/picture/pic/20131/e18395d1-f423-3e81-a688-226ee30594a0.png[/img]

接下来可能还会再做些细微的调整,总之先把现在的配色方案上传上来吧。在VS2008菜单的Tools->Import and Export Settings->Import selected environment settings选择vssettings文件来导入。
[color=red]注意:请先安装Consolas字体再使用该配色方案。[/color]
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值