Home > Development Tools > VSCode > body text

How to change the background of the code editing box in vscode

王林
Release: 2020-01-10 10:18:32
Original
2402 people have browsed it

How to change the background of the code editing box in vscode

First, open the plug-in panel of vscode, search for background, and install the plug-in as shown in the picture

How to change the background of the code editing box in vscode

After installation, manage Restart vscode in administrator mode (the plug-in is implemented by changing the css of the vscode program itself and requires administrator rights).

How to change the background of the code editing box in vscode

After starting as administrator, click the settings button on the plug-in and click configure extension settings

How to change the background of the code editing box in vscode

to open the settings. Add the following code (the image path can be modified as needed):

   "update.enableWindowsBackgroundUpdates": true,
   "background.customImages": ["C:/Users/Administrator/Pictures/cat.jpeg"],//图片的路径
    "background.enabled": true,
    "background.style": {
        "content": "''",
        "pointer-events": "none",
        "position": "absolute",
        "z-index": "99999",
        "width": "100%",
        "height": "100%",
        "background-position": "center",
        "background-repeat": "no-repeat",
        "background-attachment": "fixed",
        " background-size": "cover",
        "opacity": 0.3
    },
    "background.useFront": true,
    "background.useDefault": false,
Copy after login

The rendering is as follows:

How to change the background of the code editing box in vscode

Recommended related article tutorials: vscode Tutorial

The above is the detailed content of How to change the background of the code editing box in vscode. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!