whinee / vscode-background

A vscode extension to make it lovely. vscode background 背景扩展插件。

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vscode-background

Version Installs Ratings Build Status

English | 中文

GitHub | Vscode Market


Bring background images to your Visual Studio Code

Installation

To install the extension just execute the following command in the Command Palette of Visual Studio Code

ext install background

Custom

User defined requirements can be met by changing the configuration(settings.json).

what's settings.json | where is

Config

Name Type Default Description
background.enabled Boolean true Enable or disable this plugin
background.useFront Boolean true Set the image to front or back of your code
background.useDefault Boolean true Whether or not to use default images
background.style Object {} Customize style
background.styles Array<Object> [{},{},{}] Add custom Style for individual image
background.customImages Array<String> [] Add your custom images
background.loop Boolean false loop mode, may repeat your images

style means css style, which allows you to create great-looking background.

Examples

  1. disable this extension
{
  "background.enabled": false
}
  1. custom images

You should use protocol https instead of http for the image, http is not support by vscode any more.

{
  "background.useDefault": false,
  "background.customImages": ["https://a.com/b.png", "file:///Users/somepath/a.jpg"]
}
  1. custom style - opacity
{
  "background.style": {
    "opacity": 0.6
  }
}
  1. custom style - image size
{
  "background.style": {
    "background-size": "300px 460px"
  }
}
  1. custom style - full screen

Related Issue

{
  "background.style": {
    "background-size": "cover",
    "position": "fixed"
  }
}

Warns

This extension works by editting the vscode's css file.

So, a warning appears while the first time to install or vscode update. U can click the [never show again] to avoid it.

This is the reason:

Uninstall

two ways

1. (recommended)

press `F1` to open Command Palette, enter and chose `Background - Uninstall (remove extension)` , automatically complete uninstall.

2.

Set the config  {"background.enabled": false}  in settings.json, then uninstall the plugin.

Contributors 🙏

shalldie NoDocCat frg2089 mwSora tumit asurinsaka u3u kuresaru Unthrottled rogeraabbccdd

CHANGELOG

You can checkout all our changes in our change log.

Q&A


Q: How to remove [unsupported] tag?
A: see here: https://github.com/lehni/vscode-fix-checksums

Q: It seems that nothing happens after installing the extension in MAC?
A: In Mac, move `vscode` from `Download` to `Applications`.

Q: The extension runs based on the modified vscode CSS file, and will try to raise the right within a limited time.
   If it stop working for some reason, what if users need to change their permissions?

A: In windows,click right button on the vscode's icon,then check the [run with the administrator authority].
A: in mac/linux, try this: https://github.com/shalldie/vscode-background/issues/6 .

LICENSE

MIT

About

A vscode extension to make it lovely. vscode background 背景扩展插件。

License:MIT License


Languages

Language:TypeScript 99.8%Language:JavaScript 0.1%Language:Shell 0.0%