项目作者: shalldie

项目描述 :
A vscode extension to make it lovely. vscode background 背景扩展插件。
高级语言: TypeScript
项目地址: git://github.com/shalldie/vscode-background.git
创建时间: 2016-05-15T09:50:55Z
项目社区:https://github.com/shalldie/vscode-background

开源协议:MIT License

下载




English | 中文 | 日本語







logo

vscode-background



### Bring background images to your Visual Studio Code

fullscreeneditorsidebarpanelcarouselcustom images/styles

GitHub | Visual Studio Marketplace

Version
Installs
Ratings
Stars
Build Status
License

Multiple sections, editorsidebarpanel



fullscreen



Installation

There are 2 ways to install this extension:

  1. Install from Visual Studio Marketplace.
  2. Search shalldie.background from vscode.

Custom

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

what’s settings.json | where?

Config

Global Config

Name Type Default Description
background.enabled Boolean true Whether to enable background extension.

Editor Section Config

Edit background.editor to config editor section.

Name Type Default Description
useFront boolean true Place the image above or below the code.
style object {} Custom style for images. MDN Reference
styles object[] [{},{},{}] Each style of editor section image.
images string[] [] Your custom images, support https and file protocol.
interval number 0 Seconds of interval for carousel, default 0 to disabled.
random boolean false Whether to randomly display images.

example:

  1. {
  2. "background.editor": {
  3. "useFront": true,
  4. "style": {
  5. "background-position": "100% 100%",
  6. "background-size": "auto",
  7. "opacity": 0.6
  8. },
  9. "styles": [{}, {}, {}],
  10. // Local images can be dragged into the browser to quickly get the file protocol address from the address bar
  11. "images": ["https://pathtoimage.png", "file:///path/to/local/file"],
  12. "interval": 0,
  13. "random": false
  14. }
  15. }

Fullscreen、Sidebar、Panel Section Config

Edit background.fullscreenbackground.sidebarbackground.panel to config these sections.

Name Type Default Description
images string[] [] Your custom images, support https and file protocol.
opacity number 0.1 Opacity of the images, alias to opacity, 0.1 ~ 0.3 recommended.
size string cover Alias to background-size, cover to self-adaption (recommended).
position string center Alias to background-position, default center.
interval number 0 Seconds of interval for carousel, default 0 to disabled.
random boolean false Whether to randomly display images.

example:

  1. {
  2. "background.fullscreen": {
  3. // Local images can be dragged into the browser to quickly get the file protocol address from the address bar
  4. "images": ["https://pathtoimage.png", "file:///path/to/local/file"],
  5. "opacity": 0.1,
  6. "size": "cover",
  7. "position": "center",
  8. "interval": 0,
  9. "random": false
  10. },
  11. // `sidebar` and `panel` have the same config as `fullscreen`
  12. "background.sidebar": {},
  13. "background.panel": {}
  14. }

Quick Command

Click the 「Background」 button on the right-bottom of statusbar, all commands of background will appear:

Common Issues

This extension works by editting the vscode’s js file.

Please refer to the Common Issues if you met some problems.

Uninstall

Please refer to Common Issues#how-to-uninstall.

Contributors 🙏

shalldie
suiyun39
frg2089
AzureeDev
tumit
asurinsaka
u3u
kuresaru
Unthrottled
rogeraabbccdd
rogeraabbccdd

Contributing Guide

Refer to Contributing Guide.

Change Log

You can checkout all our changes in our CHANGELOG.

Share Your Images

We share background images here.

Migration from v1

The configuration of v1 is outdated and currently maintains a certain level of compatibility. Please refer to migration-from-v1.md for migration.

LICENSE

MIT