VsCode uses the BackGround plug-in to make the background image full screen

First go to the extension store to install the BackGround plug-in

 

Search in settings

Background: Custom Images

The settings are as follows

{
    "workbench.colorTheme": "Monokai",
    "security.workspace.trust.untrustedFiles": "open",
    "workbench.editorAssociations": {
        "*.ipynb": "jupyter-notebook"
    },
    "notebook.cellToolbarLocation": {
        "default": "right",
        "jupyter-notebook": "left"
    },
    //background 的相关配置
    "update.enableWindowsBackgroundUpdates": true,
    "background.customImages": [
        "file:///G:/smile.jpg"//图片地址
    ],
    "background.style": {
        "content":"''",
        "pointer-events":"none",
        "position":"fixed",//图片位置居中
        "width":"100%",
        "height":"100%",
        "z-index":"99999",
        "top":"0px",
        "left":"0px",
        "background.repeat":"no-repeat",
        "background-size":"cover",//图片大小为全屏
        "opacity":0.2 //透明度
    },
    "background.useFront": true,
    "background.useDefault": false,//是否使用默认图片
}

The image can be stretched to full screen to cover the background.

Attachment: Solution to the problem that vscode is damaged when starting vscode after installation

1. Install the plug-in Fix VSCode Checksums

2. Open the command line with ctrl+p in vscode and enter Fix Checksums: Apply

3. Restart vscode to solve the problem, it’s simple

Guess you like

Origin blog.csdn.net/qq_25484769/article/details/121359592