This extension works by editing the vscode's html file.
Local images can be dragged into the browser to quickly get the file protocol address from the address bar.
Local paths also support ~ (home directory) and environment variables (${HOME} or $HOME), e.g. ~/Pictures/img.png, ${HOME}/Pictures/img.png.
Starting from v2.0, this issue should not occur again. Regardless, you can refer to How to uninstall section.
Refer to How to uninstall section.
three ways:
-
Recommended way:
- Click the 「Background」 button on the right-bottom of statusbar, choose
Uninstall the extension, automatically complete uninstall.
- Click the 「Background」 button on the right-bottom of statusbar, choose
-
Disable and then uninstall:
- Set the config
{"background.enabled": false}in settings.json - Then uninstall the extension.
- Set the config
-
Not recommended:
- If you uninstall this extension directly, don't worry.
- Exit vscode
completely, thenopenvscode. Reloadagain, now it's clean.- ... It's a strange limit of vscode.
vscode needs to be located in a location with write permission.
- windows:
- Right click on
vscodeicon, chooseRun as administrator.
- Right click on
- mac:
- Move
Visual Studio Code.appfromDownloadto theApplicationdirectory. - Run
sudo chmod -R a+rw '/Applications/Visual Studio Code.app'to grant write permissions.
- Move
- linux:
- Run
sudo chmod -R a+rw /usr/share/code - Some Arch Linux:
sudo chmod -R a+rw /opt/visual-studio-code - Code Server (docker):
sudo chmod -R a+rw '/usr/lib/code-server'
- Run
Installed by snapis not supported. #382- Error: (Linux) snap: read-only file system
- Snap uses SquashFS to store packages, which is a compressed readonly file system. You can install vscode via deb or rpm.
vscodiumis not fully supported.- It works fine in most cases. But I don't use it that much, pr welcome.
VSCode crashes #306
Whenever there is an extreme situation where vscode crashes, you can manually fix it as follows:
- Open the directory:
- windows:
%LocalAppData%\Programs\Microsoft VS Code\resources\app\out\vs\workbench - mac:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench - linux:
/usr/share/code/resources/app/out/vs/workbench- Some Arch Linux:
/opt/visual-studio-code/resources/app/out/vs/workbench
- Some Arch Linux:
- windows:
- Edit
workbench.html, remove from<!-- vscode-background-startto<!-- vscode-background-end -->.
You can download the default images of v1 version from here, or use the config below:
{
"background.editor": {
"images": [
"https://user-images.githubusercontent.com/9987486/40583669-d6189844-61c5-11e8-89e3-c52ad153da09.png",
"https://user-images.githubusercontent.com/9987486/40583670-d6478c9e-61c5-11e8-9551-6b55eacc7b8d.png",
"https://user-images.githubusercontent.com/9987486/40583671-d676c6e4-61c5-11e8-94cb-34ec4a12fa01.png"
]
}
}