visual-studio 更改 Visual Studio 的背景颜色

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2187837/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-22 11:30:15  来源:igfitidea点击:

Change background colour for Visual Studio

visual-studiocolorstext-editor

提问by Asad

How can we change the background colour in Visual Studio?

我们如何在 Visual Studio 中更改背景颜色?

采纳答案by Juri

Jeff Atwood wrote a blog post (some years ago actually) for customizing VS code editor with custom fonts, background etc...

Jeff Atwood 写了一篇博客文章(实际上是几年前),用于使用自定义字体、背景等自定义 VS 代码编辑器......

This may point you to some interesting resources. Here's the link: http://www.codinghorror.com/blog/archives/000682.html

这可能会指向一些有趣的资源。这是链接:http: //www.codinghorror.com/blog/archives/000682.html

回答by Pedro

And the correct answer is (Visual Studio 2010):

正确答案是(Visual Studio 2010):

From the menus:

从菜单:

Tools -> Options --> Environment -> Fonts and Colors:

工具 -> 选项 -> 环境 -> 字体和颜色:

Select "Plain Text".

选择“纯文本”。

On the right of that, under "Item backgroud:" hit the dropdown list.

在右侧的“项目背景:”下,点击下拉列表。

As you will see, the "default" list of colours in here are way too strong for a background, so you'll have to hit "Custom...".

正如您将看到的,此处的“默认”颜色列表对于背景来说太强了,因此您必须点击“自定义...”。

I highly recommend a very, very pale creamy yellow colour. When you've dragged the crosshair over the exact colour you wish, hit the hue arrow sidebar indicator on the right of the colour palette in order to view your selected colour in the "Color" indicator.

我强烈推荐一种非常非常淡的奶油黄色。当您将十字准线拖到您想要的确切颜色上时,点击调色板右侧的色相箭头侧边栏指示器,以便在“颜色”指示器中查看您选择的颜色。

If you wish to save this colour for future reference, click on a vacant white space under "Custom Colours:", and hit the "Add to Custom Colors" button. Your newly selected colour will be saved here. Click OK twice.

如果您希望保存此颜色以供将来参考,请单击“自定义颜色:”下的空白区域,然后单击“添加到自定义颜色”按钮。您新选择的颜色将保存在此处。单击确定两次。

Tip: In order to overwrite any of these custom colours with a new one, make sure you click the required square so the dotted surround appears, before adding the new colour to the palette position.

提示:为了用新颜色覆盖这些自定义颜色中的任何一种,请确保在将新颜色添加到调色板位置之前单击所需的方块,以便出现虚线环绕。

My work is done here.

我的工作在这里完成。

:)

:)

回答by Rahul Tilloo

Its really simple to customize the background of Visual Studio 2013. Here is it :

自定义 Visual Studio 2013 的背景真的很简单。这是:

  • Tools
  • Options
  • Environment -> General
  • 工具
  • 选项
  • 环境 -> 一般

P.S : Works in Visual Studio 2012 & 2013

PS:适用于 Visual Studio 2012 和 2013

enter image description here

在此处输入图片说明

回答by Rahul Tilloo

Tools --> Options --> Environment --> Fonts and Colors

工具 --> 选项 --> 环境 --> 字体和颜色

回答by prampe

Visual Studio Code EditorIn File->Preferences->Color Theme

Visual Studio 代码编辑器在文件->首选项->颜色主题中

回答by Brandon

Tools -> Options -> Under the Environment section there are Fonts & Colors, change the Item Background.

工具 -> 选项 -> 在环境部分下有字体和颜色,更改项目背景。

回答by stackuser83

basically same for VS2012e: TOOLS > Options > Environment > Fonts and Colors > Display Items: Plain Text > "Item background" dropdown selector

VS2012e 基本相同:工具>选项>环境>字体和颜色>显示项目:纯文本>“项目背景”下拉选择器

回答by Kainax

This is the only one right answeron this whole page as people answered about "Visual Studio", not "Visual Studio Code":

这是整个页面上唯一一个正确的答案,因为人们回答的是“Visual Studio”,而不是“Visual Studio Code”

To change color theme in "Visual Studio Code", use:

要在“Visual Studio Code”中更改颜色主题,请使用:

File -> Preferences -> Color Theme -> select any color theme you like

文件 -> 首选项 -> 颜色主题 -> 选择您喜欢的任何颜色主题

You can also download other custom themes as extensions. To do that, open extensions tab on sidebar and type "theme" into the search field to filter extensions only to themes related ones. Click any you like, click "download" and then "install". After installation and restarting VSC, you can find newly installed themes next to default themes in the same place:

您还可以下载其他自定义主题作为扩展。为此,请打开侧边栏上的扩展选项卡,然后在搜索字段中键入“主题”以仅过滤与主题相关的扩展。单击任何您喜欢的,单击“下载”,然后单击“安装”。安装并重新启动 VSC 后,您可以在同一位置的默认主题旁边找到新安装的主题:

File -> Preferences -> Color Theme -> select newly downloaded color theme

文件 -> 首选项 -> 颜色主题 -> 选择新下载的颜色主题

PS - Microsoft made bad naming decision by calling this new editor Visual Studio Code, it's terrible how many wrong links we have in google and stackoverflow. They should rename it to VSCode or something.

PS - 微软通过调用这个新的编辑器 Visual Studio Code 做出了错误的命名决定,我们在 google 和 stackoverflow 中有多少错误的链接是可怕的。他们应该将其重命名为 VSCode 或其他名称。

回答by daGo

File-> Preferences-> Settings.

文件-> 首选项-> 设置。

Find workbench.colorCustomizationsobject, change its editor.backgroundproperty and save (you will see the results immediately — no need to restart vs code). Or you just can copy my current config file vs code config gist.

找到workbench.colorCustomizations对象,更改其editor.background属性并保存(您将立即看到结果——无需重新启动 vs 代码)。或者您可以复制我当前的配置文件与代码配置要点

回答by Ali Karaca

2019

2019年

Tools -> Options --> Environment -> Fonts and Colors:

工具 -> 选项 -> 环境 -> 字体和颜色:

enter image description here

在此处输入图片说明