VSCode setting background image

1. Open the installation directory of vscode: C: \ Program Files \ Microsoft VS Code \ resources \ app \ out \ vs \ workbench, find the following workbench.main.css file, set the background here;

2. Copy the following code

body {
    background-image: url('file:///D:/BackGround.jpg');
    background-size: 100%;
    opacity: 0.75;
    background-repeat: no-repeat;
}

3. Set the picture path by yourself, save and restart VSCODE.

 

Guess you like

Origin www.cnblogs.com/Marginalin/p/12722695.html