How to combine multiple VS Code themes? - visual-studio-code

I come from Atom, where I had a way to define a UI theme, and a syntax theme.
Now with VS Code I'm using One Dark Pro theme, because I like how it styles the UI, but I would like to use a different syntax for the editors text.
Is there a way to combine multiple themes to obtain what I want?

As of VSCode 1.13, you cannot do this without creating your own theme. We are tracking Atom-style support for separate syntax and UI themes here: https://github.com/Microsoft/vscode/issues/25986
You can manually combine themes however. See our built-in red theme for an example of using different files for the syntax theme definition (red.tmTheme) and the UI theme (Red-color-theme.json).

Related

Is it possible to export a VSCode color theme to PhpStorm?

I recently needed to move from VSCode to PhpStorm IDE, and I would like to know if there is a way to export my color theme too. Here is the theme I use in VSCode.
Because the theme is a JSON file, I'm pretty sure there is a way to do it, but I don't know how.
This can't be done; in PhpStorm, themes are not JSON files but java LAFs.
However, we have plenty of themes available in the repository, see https://plugins.jetbrains.com/search?headline=164-theme&products=phpstorm&tags=Theme., please check Cyberpunk Theme or CyberpunkUI Color Scheme, for example.
If none of them looks good for you, you can try developing your own one. Here are the guidelines for creating a custom theme plugin/customizing a theme

Adding color theme only for a specific language

I am in that lucky case where I am writing both the language syntax (tmLanguage file) and I'd like to write a custom coloring for that as well in my extension.
Is it possible to create a theme which does not interfere with the user's theme, just adds some extra to it? I only need some extra colors, because the common themes aren't colorful enough for my needs.
If I create a new theme I observed that it completely overwrites the previous one and loads specifically mine.
VSCode's builtin Dark+ theme does something like that: it extends / includes the regular Dark theme.
"include": "./dark_vs.json"
However, I guess this relies on relative file paths and the fact that they are both in the same directory, so you might have to ship copies of the themes with your extension for this to work.

Is there a way to change background color of syntax highlight in Visual Studio Code

I was looking for a better code editor for my projects and wanted to give VSCode a try. But I couldn't find where to customize the syntax highlighting settings. What I actually need is to change the background color of embedded languages within a file so that I can identify different parts of the code a lot easier.
I have this PHP file which contains, HTML, CSS and JavaScript and I'd like to set different background colors for all 4 languages within this single file. Is this possible with VSCode? or does anyone know a code editor that supports this? UltraEdit supports this but it has so many other shortcomings.
Not possible #3429 Themes don't support background styling

Eclipse - Different syntax highlighting for different file extensions

I am using the Eclipse Color Theme plugin and would like to know if there is a way to associate specific color themes to groups of file extensions.
This is different than the default behavior which applies the current theme to all file extensions.

Change Eclipse window color

I've been using Eclipse for a while now, as we need it in class to work with xml files.
I'm rather a fan of using dark backgrounds, as I find it easyer for the eyes.
I've found this topic on how to change the theme in Eclipse, but this only changes the color scheme in the coding window.
Is there a way to change the entire color scheme for the whole program (sidebars, background color, foreground color, ...) in Eclipse like you have in Visual Studio?
offtopic: I want to do the same in NetBeans
EDIT: finally got it to work, but my color scheme s*cks.
Does anyone have a good scheme I can use or some CSS file I may import?
It would be perfect if it fits with any dark Color Theme (Monokai, NightLion Aptana Theme, Oblivion, Obsidian, Pastel, RecognEyes, Sublime Text 2, Sunburst, Wombat or zenburn). Looking at this list, I notice a lot of themes are dark. Too bad the program itself hasn't got themes (unless the Chrome Theme to change everything ourselves)
If you are using Eclipse 4, you can use the Eclipse 4 Chrome Theme to style everything in the program using CSS (or properties for the most used UI elements).
Many of the colors can be adjusted via Preferences > General > Appearance > Colors and Fonts. For things that are not configurable there, they're controlled by tour operating system color settings.