Home > Development Tools > VSCode > Let's talk about how to set the picture background for vscode editor

Let's talk about how to set the picture background for vscode editor

青灯夜游
Release: 2021-05-10 21:52:53
forward
4091 people have browsed it

This article will give you a detailed introduction to the method of setting the image background for the vscode editor. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to everyone.

Let's talk about how to set the picture background for vscode editor

[Recommended study: "vscode tutorial"]

Let’s take a look at the effect display first~

Lets talk about how to set the picture background for vscode editor

Lets talk about how to set the picture background for vscode editor

Method

In order to be able to modify it at any time, you can create a ## under your ~/.vscode folder Directory of #vscode_style, put your own css document and some pictures in it. Taking the author as an example, my vscode style is

/**vscode_style.css*/
body{
   pointer-events: auto !important;
   background-size: 100% !important;
   opacity: 0.90 !important;
   background-position: 0 0 !important;
   /**change your image url here*/
   background-image: url('./bg.png');
   content: '';
   position: absolute;;
   z-index: 999;
   width: 100%;
   background-repeat: no-repeat;
 }
Copy after login

and then find the vscode program folder. On Linux, it is usually in the

'/opt' directory. You can modify the style of vscode by modifying workbench.desktop.main.css under {vscode_dir}/resources/app/out/vs/workbench.

@import "/home/huaiyu/.vscode/vscode_style/vscode_style.css";
Copy after login

Just restart vscode. When you restart, you will find vscode reminding you that

your code installation appears to be corrupt, just ignore it~

    other , if you think the ugly title bar is not good-looking, you can add
  • "window.titleBarStyle": "custom",
    Copy after login
    in settings.json to customize the title bar style yourself.

    For more programming related knowledge, please visit:

    Programming Video! !

    The above is the detailed content of Let's talk about how to set the picture background for vscode editor. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:segmentfault.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template