VS code theme colors

VS code theme colors

VS code theme colors can be overridden *per workspace*. Great for differentiating between projects

VS code theme colors can be overridden per workspace. Great for differentiating between projects

You can customize your active Visual Studio Code color theme with the workbench.colorCustomizations user setting.

{
	"workbench.colorCustomizations": {
		"activityBar.background": "#00AA00"
	}
}

Note: If you want to use an existing color theme, see Color Themes where you’ll learn how to set the active color theme through the Preferences: Color Theme dropdown (⌘K ⌘T (Windows, Linux Ctrl+K Ctrl+T)).

Color formats

Color values can be defined in the RGB color model with an alpha channel for transparency. As format, the following hexadecimal notations are supported: #RGB, #RGBA, #RRGGBB and #RRGGBBAA. R (red), G (green), B (blue), and A (alpha) are hexadecimal characters (0-9, a-f or A-F). The three-digit notation (#RGB) is a shorter version of the six-digit form (#RRGGBB) and the four-digit RGB notation (#RGBA) is a shorter version of the eight-digit form (#RRGGBBAA). For example #e35f is the same color as #ee3355ff.

If no alpha value is defined, it defaults to ff (opaque, no transparency). If alpha is set to 00, the color is fully transparent.

Some colors should not be opaque in order to not cover other annotations. Check the color descriptions to see to which colors this applies.

Contrast colors

The contrast colors are typically only set for high contrast themes. If set, they add an additional border around items across the UI to increase the contrast.

  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.
Base colors
  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.
Text colors

Colors inside a text document, such as the welcome page.

  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.
Button control

A set of colors for button widgets such as Open Folder button in the Explorer of a new window.

  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.
Dropdown control

A set of colors for all Dropdown widgets such as in the Integrated Terminal or the Output panel. Note that the Dropdown control is not used on macOS currently.

  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.
Input control

Colors for input controls such as in the Search view or the Find/Replace dialog.

  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.
Scrollbar control
  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.
Badge

Badges are small information labels, for example, search results count.

  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.
Progress bar
  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.
Lists and trees

Colors for list and trees like the File Explorer. An active list/tree has keyboard focus, an inactive does not.

  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.
Activity Bar

The Activity Bar is displayed either on the far left or right of the workbench and allows fast switching between views of the Side Bar.

  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.
Side Bar

The Side Bar contains views like the Explorer and Search.

  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.
Editor Groups & Tabs

Editor Groups are the containers of editors. There can be many editor groups. A Tab is the container of an editor. Multiple Tabs can be opened in one editor group.

  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.
Editor colors

The most prominent editor colors are the token colors used for syntax highlighting and are based on the language grammar installed. These colors are defined by the Color Theme but can also be customized with the editor.tokenColorCustomizations setting. See Customizing a Color Theme for details on updating a Color Theme and the available token types.

All other editor colors are listed here:

  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.

Selection colors are visible when selecting one or more characters. In addition to the selection also all regions with the same content are highlighted.

  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.

Word highlight colors are visible when the cursor is inside a symbol or a word. Depending on the language support available for the file type, all matching references and declarations are highlighted and read and write accesses get different colors. If document symbol language support is not available, this falls back to word highlighting.

  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.

Find colors depend on the current find string in the Find/Replace dialog.

  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.

The hover highlight is shown behind the symbol for which a hover is shown.

  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.

The current line is typically shown as either background highlight or a border (not both).

  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.

The link color is visible when clicking on a link.

  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.

The range highlight is visible when selecting a search result.

  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.

To see the editor white spaces, enable Toggle Render Whitespace.

  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.

To see the editor indent guides, set "editor.renderIndentGuides": true.

  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.

To see editor rulers, define their location with "editor.rulers"

  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.

CodeLens:

  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.

Bracket matches:

  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.

Overview ruler:

This ruler is located beneath the scroll bar on the right edge of the editor and gives an overview of the decorations in the editor.

  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.

Errors and warnings:

  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.

Unused source code:

  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.

The gutter contains the glyph margins and the line numbers:

  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.
Diff editor colors

For coloring inserted and removed text, use either a background or a border color but not both.

  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.
Editor widget colors

The Editor widget is shown in front of the editor content. Examples are the Find/Replace dialog, the suggestion widget, and the editor hover.

  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.

The Debug Exception widget is a peek view that shows in the editor when debug stops at an exception.

  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.

The editor marker view shows when navigating to errors and warnings in the editor (Go to Next Error or Warning command).

  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.
Peek view colors

Peek views are used to show references and declarations as a view inside the editor.

  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.
Merge conflicts

Merge conflict decorations are shown when the editor contains special diff ranges.

  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.
Panel colors

Panels are shown below the editor area and contain views like Output and Integrated Terminal.

  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.
Status Bar colors

The Status Bar is shown in the bottom of the workbench.

  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.
Title Bar colors
  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.
Menu Bar colors
  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.
Notification colors

Note: The colors below only apply for VS Code versions 1.21 and higher.

Notification toasts slide up from the bottom-right of the workbench.

Once opened in the Notification Center, they are displayed in a list with a header:

  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.

If you target VS Code versions before the 1.21 (February 2018) release, these are the old (no longer supported) colors:

  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.
Extensions
  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.
Quick picker
  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.
Integrated Terminal colors
  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.
Debug
  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.
Welcome page
  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.
Git colors
  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.
Settings Editor colors

Note: These colors are for the GUI settings editor which can be opened with the Preferences: Open Settings (UI) command.

  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.
Breadcrumbs

The theme colors for breadcrumbs navigation:

  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.
Snippets

The theme colors for snippets:

  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.

Color ids can also be contributed by extensions through the color contribution point. These colors also appear when using code complete in the workbench.colorCustomizations settings and the color theme definition file. Users can see what colors an extension defines in the extension contributions tab.

Extension colors

Color ids can also be contributed by extensions through the color contribution point. These colors also appear when using code complete in the workbench.colorCustomizations settings and the color theme definition file. Users can see what colors an extension defines in the extension contributions tab.

Learn More

Complete Java Masterclass

Complete Python Bootcamp: Go from zero to hero in Python 3

Angular 7 (formerly Angular 2) - The Complete Guide

☞ [The Complete JavaScript Course 2018: Build Real Projects!](http:// deal.codetrick.net/p/rJWeUz65Z “The Complete JavaScript Course 2018: Build Real Projects!”)

Become a JavaScript developer - Learn (React, Node,Angular)

The Complete Node.js Developer Course (2nd Edition)

The Complete React Web Developer Course (2nd Edition)

Vue JS 2 - The Complete Guide (incl. Vue Router & Vuex)

Build Responsive Real World Websites with HTML5 and CSS3

PHP for Beginners - Become a PHP Master - CMS Project

Python in Visual Studio Code

Python in Visual Studio Code

Python in Visual Studio Code

This post was written by Luciana Abud, Program Manager for the Python Extension in Visual Studio Code

We are pleased to announce that the January 2019 release of the Python Extension for Visual Studio Code is now available. You can download the Python extension from the Marketplace, or install it directly from the extension gallery in Visual Studio Code. You can learn more about Python support in Visual Studio Code in the documentation.

In this release we have closed a total of 62 issues, including:

  • IPython console support in the Python Interactive window
  • Support for running an entire file in the Python Interactive window
  • Problems for failed tests when using pytest (thanks Chris NeJame)
  • Much faster outline when using the Python Language Server

Keep on reading to learn more!

IPython console support in the Python Interactive window

The data science experience was first introduced in the last October release, and one of the top feedback requests we’ve heard was to provide the ability to iterate rapidly by experimenting with code in an interactive console environment. In this update, we extended the Python Interactive window with IPython console support by allowing code to be typed in and executed directly in the window. You can now use the enhanced Interactive window standalone as an IPython console, or send code from the editor for execution.

Here’s how to use it in a nutshell:

  • IPython console support in the Python Interactive window
  • Support for running an entire file in the Python Interactive window
  • Problems for failed tests when using pytest (thanks Chris NeJame)
  • Much faster outline when using the Python Language Server

Run an entire file in the Python Interactive window without cells defined

Being able to run code in the Python Interactive window without having to define cells is no doubt one of the most requested features. This update enables running the entire files in the Interactive window without cell definitions.

To run the entire file, simply use the command Run Current File in Python Interactive window in the Command Palette. Your code will be executed with results displayed in the Python Interactive window.

We’ve also heard requests to run the current code selection / line in the editor, and this will be coming next in a future update.

Diagnostics for failed tests with pytest

This release also includes an enhancement to unit tests run with pytest: you can now see failed tests in the problems window. You can also double click lines to navigate to the failed test method and the exact failing line. The correspondent line in the editor will be selected, allowing you to easily identify and edit it.

As before, you can also see failed tests highlighted with pass/fail icons in the editor. You can hover these icons to see the errors navigate to the failing test method/line, just like in the problems window.

We’d like to thank community contributor Chris NeJame for implementing this new feature. Contributions to the Python extension are always welcome! If you’re interested, check our contributing guide to learn more.

Much faster outline view with the Python Language Server

We also made improvements to the outline view when using the Microsoft Python Language Server. The Outline view could often take a long time to load or even time out, and now with the Language Server It now loads consistently fast, and cases where symbols would appear duplicated were fixed.

As a reminder, the Language Server was released as a preview the last July release of the Python extension. To opt-in to the language server, change the python.jediEnabled setting to false in File > Preferences > User Settings. We are working towards making the language server the default in future releases.

Original source: https://blogs.msdn.microsoft.com

 ===================================================================

Thanks for reading :heart: If you liked this post, share it with all of your programming buddies! Follow me on Facebook | Twitter

Learn More

☞ Complete Python Bootcamp: Go from zero to hero in Python 3

☞ Python for Time Series Data Analysis

☞ The complete beginner’s guide to JSON

☞ The Complete Guide to JSON Web Tokens

☞ Python Programming For Beginners From Scratch

☞ Python Network Programming | Network Apps & Hacking Tools

☞ Intro To SQLite Databases for Python Programming

☞ Ethical Hacking With Python, JavaScript and Kali Linux

☞ Beginner’s guide on Python: Learn python from scratch! (New)

☞ Python for Beginners: Complete Python Programming

Coding F# in Visual Studio Code with Ionide

Coding F# in Visual Studio Code with Ionide

In this post, Phillip Carter sits down with Cecil is talk about the Ionide extension for Visual Studio Code. Ionide tons of of great features for F# developers working in Visual Studio code such as autocomplete, packet integration, syntax highlighting and much more.

Ionide plugin for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=Ionide.Ionide-fsharp&wt.mc

F# Guide
https://docs.microsoft.com/en-us/dotnet/fsharp?wt.mc

Visual Studio Code
https://code.visualstudio.com?wt.mc

In this episode, Phillip Carter sits down with Cecil is talk about the Ionide extension for Visual Studio Code. Ionide tons of of great features for F# developers working in Visual Studio code such as autocomplete, packet integration, syntax highlighting and much more.

[00:55] - Introducing Ionide

[03:11] - Getting started with Ionide

[04:16] - F# scripting

[10:25] - Working with F# projects

[12:50] - The F# Info Panel

[18:42] - Recapping BenchmarkDotNet with F#

[22:07] - Contributing to Ionide