Home  >  Article  >  Development Tools  >  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

青灯夜游
青灯夜游forward
2021-05-10 10:41:204029browse

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~

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

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;
 }

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";

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",
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!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete