官术网_书友最值得收藏!

Extension – changing the color theme in Visual Studio

By default, you cannot save the changes you make to the font colors and background settings that you make in the Fonts and Colors dialog. To fix this issue, Visual Studio 2015 has a feature called Themes. If you go to Tools | Options | Environment | General, you can change the theme to one of the three pre-installed stock themes (Light, Blue, and Dark).

A different theme completely changes the look of Visual Studio—from the colors of the title bars to the background color of the text editor window.

You can also customize the theme of Visual Studio completely, but you'll need an extension to do so. Extensions are little programs that can be installed into Visual Studio to modify its behavior.

By default, your customized color settings cannot be saved or reloaded into another Visual Studio installation without the extension. With the extension, you will also be able to save your own color theme to share with others. You can also load the color settings made by another person or by yourself into a fresh copy of Visual Studio.

How to do it...

  1. Go to Tools | Extensions and Updates…
  2. From the dialog that appears, choose Online in the panel on the left-hand side. Start typing Theme Editor into the search box at the right. The Visual Studio 2015 Color Theme Editor dialog will pop up in your search results.
  3. Click the small Download button in the top right-hand corner of the entry. Click through the installation dialog prompts, allowing the plugin to install. After installation, Visual Studio will prompt you to restart.

    Tip

    Alternatively, visit https://visualstudiogallery.msdn.microsoft.com/6f4b51b6-5c6b-4a81-9cb5-f2daa560430b and download/install the extension by double-clicking the .vsix that comes from your browser.

  4. Click Restart Now to ensure the plugin is loaded.
  5. After restarting, go to Tools | Customize Colors to open the Color Themes editor page.
  6. From the Color Themes dialog that appears, click on the little palette-shaped icon on the upper-right corner of the theme that you want to use as your base or starting theme (I've clicked on the palette for the Light theme here, as you can see in the following screenshot).
  7. A copy of the theme will appear in the Custom Themes section in the lower part of the Color Themes window. Click on Edit Theme to modify the theme. When you are editing the theme, you can change everything from the font text color to the C++ keyword color.
  8. The main area you are interested in is the C++ Text Editor section. To gain access to all the C++ Text Editor options, be sure to select the Show All Elements option at the top of the Theme Editor window, as shown in the following screenshot:

    Note

    Be sure to select the Show All Elements option in the Theme Editor window to show C++-specific text editor settings. Otherwise, you'll be left with Chrome/GUI type modifications being possible only.

  9. Note that, while most of the settings you are interested in will be under Text Editor | C/C++, some will not have that C++ subheading. For example, the setting for the main/plain text inside the editor window (for all languages) is under Text Editor | Plain Text (without the C++ subheading).
  10. Select the theme to use from Tools | Options | Environment | General. Any new themes you have created will appear automatically in the drop-down menu.

How it works...

Once we load the plugin, it integrates into Visual Studio quite nicely. Exporting and uploading your themes to share with others is quite easy too.

Adding a theme to your Visual Studio installs it as an extension in Tools | Extensions and Updates…, To remove a theme, simply Uninstall its Extension.

主站蜘蛛池模板: 库车县| 栾城县| 高唐县| 平乐县| 怀安县| 清河县| 屏山县| 通州市| 积石山| 邢台县| 湘西| 淮南市| 建瓯市| 栾川县| 平遥县| 日照市| 崇信县| 吉安市| 阳江市| 资阳市| 山东省| 西平县| 梧州市| 顺昌县| 安乡县| 金沙县| 云阳县| 瑞昌市| 体育| 曲麻莱县| 苍梧县| 辉南县| 山西省| 游戏| 两当县| 六安市| 延长县| 高安市| 泽库县| 辰溪县| 泗洪县|