Change background and font in "Problems" panel in vscode - visual-studio-code

I have the most recent copy of VSCode.
I'd like to change the background color and font on the "Problems" panel in the terminal window.
I have used theJSON settings to set up the background on the terminal window itself but can't seem to find a setup for the problems panel.
Thanks for looking.

Look at the panel properties to change the Problems panel.
"workbench.colorCustomizations": {
"panel.background": "#0b698f",
"panel.border": "#ff510060"
}
But it will change the background for all the panel items, like Terminal, Problems, Debug Console, etc.
You can override that setting for the Terminal only:
"terminal.background": "#ff0000",
It would appear that the Problems panel fontFamily cannot be independently set as I see only these two panel fontFamily properties:
"terminal.integrated.fontFamily"
"debug.console.fontFamily"
You might be able to figure out how to do it with the Custom CSS and JS extension. See, for example, How to change the font in VS Code's 'Explorer' window?
Maybe it is <div class="composite panel markers-panel"

Related

Change text highlight settings in Visual Studio Code for macOS

In Visual Studi Code for macOS (Version: 1.72.2), how do I change the settings for how certain text is highlighted. In the include screenshot, the highlight for the Find result (the word buret in buret.addEventListener is barely noticeable among the other highlighted words (button, enable, etc.)
Thanks in advance!
Searched through settings which is far too big to easily find it.
You can customize your theme colors. The colors you are looking for are your editor colors.
Press Ctrl+Shift+P to bring up the command palette and run the Preferences: Open JSON Settings command. Add the following lines to your configuration:
"workbench.colorCustomizations": {
"editor.findMatchBackground": "#00ff00",
"editor.findMatchHighlightBackground": "#ff0000",
},
This will change the background color of the active find match to green and of all other find matches to red. Adjust the colour values as you like.

VSCode: change font size of menu bars?

A potentially very stupid question, but I'm lost.
How do I change the font size of the menu bars (i.e. the labels "File", "Edit", "Selection", "View", ...) including the sidebar explorers, extension menus etc. (i.e. every text that is not the main coding window)?
I tried searching the user settings for "font" but I did not see any option specific for the menu font size.
I was also not able to find it via Googling.
The version of VSCode I currently have is 1.63.2
I am sure I missed something and apologies in advance for this simple-minded question.
Press Ctrl+Shift+P to bring up the command palette and run the View: Zoom In or View: Zoom Out command. The default keybindings for these commands are Ctrl++ and Ctrl+-.
There is also an extension called Zoom Bar which adds the overall zoom level to the status bar.
This will zoom your main coding windows as well, but you can work against that by adjusting your editor font size in your JSON settings:
"editor.fontSize": 14
Increase or decrease this depending on your zoom level.

how to change vscode workspace title colors

When working with multiple workspaces, I would love to be able to change the color of each sidebar menu title. Either the font, or the background color. In this example, there would be four colors. Is this possible?
the setting that seems to work is:
"workbench.colorCustomizations": {
"sideBarSectionHeader.background": "#ccff00"
},
however, this controls the color for all sideBarSectionHeaders.
i believe i can modify individual headers in by changing the settings in the .code-workspace file. cmd + p, >, "open workspace settings (JSON)".

Change Visual Studio Code's title bar color

Is there a way to change the Title Bar color for Visual Studio Code (v1.26.0)?
Menu File → Preferences → Settings
Look for "window.titleBarStyle": "native", copy it to your user settings, and change it to "window.titleBarStyle": "custom". It will adapt your theme now.
If the current color is not what you want or you want to tweak it, try doing this.
In your user settings, add the following.
"workbench.colorCustomizations": {
"[Name of the Current Theme you are using]": {
"titleBar.activeBackground": "#191919cc",
"titleBar.activeForeground":"#ffffff",
},
},
"window.titleBarStyle": "custom"
Open menu File → Preferences → Settings and add the following setting:
"workbench.colorCustomizations": {
"titleBar.activeBackground": "#553955" // Change this color!
},
"window.titleBarStyle": "custom"
From the following source:
Colorful Visual Studio Code titlebars for better productivity
There is now a handy Visual Studio Code marketplace plugin called Window Colors which automatically colors the activitybar and titlebar of every window uniquely.
Just go to extensions and type: window colors
For more information, see the Visual Studio Code marketplace webpage.
Edit (Sept 2020): Just noticed that on Ubuntu 20.04 I had to set the preferences->titlebar setting from native to custom in the VSCode Preferences. Otherwise the titlebar does not change colors. Also see this issue on github here- the input from #musicfuel solved it for me.
John Papa launched Peacock a few months back. I've been using the same since then.
It's an easy-to-use plugin with a great set of commands to work with.
It is highly customize-able.
Also it has emphasis on BrandColors which comes in handy when you're simultaneously working on several different projects involving different frameworks and libraries.
In case somebody is still interested. I am using Color Stamp plug
For further tweaks, I changed the following parameters in my vscode project settings
.vscode\settings.json
"workbench.colorCustomizations": {
"titleBar.activeBackground": "#7C21D7",
"titleBar.border": "#ebe8e8",
"titleBar.inactiveBackground": "#7c21d77c",
"titleBar.activeForeground": "#ebe8e8",
"statusBar.background": "#7C21D7",
"statusBar.debuggingBackground": "#7C21D7",
"statusBar.noFolderBackground": "#7C21D7",
"statussBar.prominentBackground": "#7C21D7",
"statusBar.foreground": "#ebe8e8"
}
Note that VSCode 1.45 (April 2020) will offer additional settings:
New theme colors for editor tabs
Some new colors where added to further theme workbench editor tabs:
tab.unfocusedInactiveBackground: Inactive tab background color in an unfocused group
tab.hoverForeground: Tab foreground color when hovering
tab.unfocusedHoverForeground: Tab foreground color in an unfocused group when hovering
New theme color for editor title border
The existing color editorGroupHeader.tabsBorder changed to render a border below tabs but above breadcrumbs.
A new color editorGroupHeader.border allows to render a border below the editor group header (i.e. below breadcrumbs if enabled) to restore the previous behaviour of editorGroupHeader.tabsBorder.
Please apply these simple steps.
Menu File → Preferences → Settings
Look for "window.titleBarStyle": "native", and change it to "window.titleBarStyle": "custom". It will adapt your theme now.
If the current color is not what you want or you want to tweak it, try doing this.
In your user settings, add the following.
"workbench.colorCustomizations": {
"titleBar.activeBackground": "#191919cc",
"titleBar.activeForeground":"#ffffff",
},
I've created a simple Visual Studio Code plugin which accepts a list of regular expressions and colors and changes the titleBar based on them. It's great for working on mono repositories or large projects with multiple packages (like Lerna, or React + React Native)
ColorTabs
Changing the theme of Visual Studio Code will change the title bar color.
Menu File → Preferences → Color theme
Then switch to a different color theme, this will change the title color.

Way to disable the Visual Studio Code editor title bar

When not using tabs in Visual Studio Code, it still shows a bar with the name of the currently open file.
Editor title bar
Is there a way to disable this bar completely?
You can use this setting to hide the title bar: "window.titleBarStyle": "custom". It can be accessed via menu File → Preferences → Settings → Window → Title Bar Style and set it to custom.
On macOS, hiding the title bar doesn't appear to be natively supported at the moment.
Update: The Customize UI extension isn't working for the moment, but I'm preserving the rest of my answer in case it becomes supported again:
If you're willing to install an extension, the Customize UI extension has a macOS-only customizeUI.titleBar setting:
inline: places window controls in the sidebar or tab bar.
frameless: hides window controls.
Note that this setting requires that "window.titleBarStyle": "native" is also set.
Here's what the inline setting looks like:
Install the custom CSS extension.
Now in your custom stylesheet:
.container > .title {
display: none !important;
}
After, run the command "Enable custom css / js" (and restart).
I played around with suggested options from VSCode and found this to work
make sure that you have your Window Title Bar Style set to custom
open the settings.json file located in /Users/{your-username}/Library/Applcation\ Support/Code/User/settings.json
Append the following to the JSON object
"editor.titleBar.enabled": false
Another option could be to try setting this option in the settings file
"workbench.colorCustomizations": {
"titleBar.forground": "#00000000",
"titleBar.activeForeground": "#00000000",
"titleBar.background": "#00000000",
"titleBar.activeBackground": "#00000000",
...
This is my machine settings
here's a comprehensive list of options you can use to tweak the current the or even your own theme. no additional 3rd party extensions are needed, just tine in the saddle!
happy coding =)
I faced this issue today, so according to the screenshot you attached it looks like file path is showing with a title bar. So to hide this completely, you can remove this property called "workbench.editor.showTabs" if it's value is false from settings.json file situated in /Users/(user_name)/Library/Application Support/Code/User/settings.json
File → Preferences → Settings → Window → Title Bar Style
Now choose custom title bar.