• Stars
    star
    1,288
  • Rank 36,518 (Top 0.8 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 8 years ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Bring background images to your vscode. vscode background 背景扩展插件。

logo

vscode-background

Bring background images to your Visual Studio Code

code areafullscreencarouselcustom images/styles...

GitHub | Visual Studio Marketplace

Version Installs Ratings Stars Build Status License


Code Area

Fullscreen

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

Base Config

Name Type Default Description
background.enabled Boolean true Enable or disable this plugin

Default Config

Name Type Default Description
background.useFront Boolean true Set the image to front or back of your code
background.style Object {} Customize style
background.styles Array<Object> [{},{},{}] Add custom Style for individual image
background.customImages Array<String> [] Add your custom images
background.interval Number 0 Seconds of interval for carousel, default 0 to disabled.

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

Fullscreen Config

may overwrite the default config

Name Type Default Description
background.fullscreen Object null Set the images to fullscreen

example:

{
  "background.fullscreen": {
    "images": ["https://pathtoimage.png"], // urls of your images
    "opacity": 0.91, // 0.85 ~ 0.95 recommended
    "size": "cover", // also css, `cover` to self-adaption (recommended),or `contain`、`200px 200px`
    "position": "center", // alias to `background-position`, default `center`
    "interval": 0 // seconds of interval for carousel, default `0` to disabled.
  }
}

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.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. full screen
{
  "background.fullscreen": {
    "images": ["https://pathtoimage.png"], // urls of your images
    "opacity": 0.91, // 0.85 ~ 0.95 recommended
    "size": "cover", // also css, `cover` to self-adaption (recommended),or `contain`、`200px 200px`
    "position": "center", // alias to `background-position`, default `center`
    "interval": 0 // seconds of interval for carousel, default `0` to disabled.
  }
}

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

three 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.

3. An unfriendly way:

If you uninstall this plugin directly, don't worry.
Exit vscode completely, then open, then reload. Now it's clean :D
(I know it's strange... Because of the limit of vscode)

Contributors 🙏

shalldie NoDocCat frg2089 mwSora tumit asurinsaka u3u kuresaru Unthrottled rogeraabbccdd 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

More Repositories

1

chuncai

A lovely Page Wizard, is responsible for selling moe.
TypeScript
111
star
2

vue-3d-menu

Vue 的3d菜单组件。
JavaScript
93
star
3

mini-mvvm

基于 virtual dom 的轻量级 mvvm 库 >_<#@!
TypeScript
80
star
4

qin

琴弦文字,基于jquery的琴弦文字效果插件。
JavaScript
62
star
5

mini-tpl

A simple template engine,only 50 rows. 简易js模板引擎。
JavaScript
41
star
6

flower

The flowers which are growing in canvas...
JavaScript
35
star
7

vue-qin

Vue 的琴弦文字插件。
JavaScript
29
star
8

requirejs

自己实现的一个requirejs库
JavaScript
20
star
9

vue-git-comment

A vue's comment component based on github's issues. 基于 vue 和 github issue 的评论组件。
TypeScript
14
star
10

hook-service

Monorepo of service、state manager for Vue2/Vue3/React. 极其精简的状态管理库,提供了 Vue2/3 和 React 版本。
TypeScript
11
star
11

bud-css3

A beauty bud built with css3.
CSS
10
star
12

tnote

Cloud Notebook in terminal. 终端中运行的云笔记本。
Go
8
star
13

mini-task

A js/node lib include the queue,promise and async.
JavaScript
7
star
14

scroll-active

A lightweight lib for making navigation elements active as you scroll. 在滚动时激活对应导航的轻量级库。
TypeScript
6
star
15

togame

Games in terminal. 控制台游戏集合。
TypeScript
5
star
16

mulu

用于在左侧显示文章目录的小插件 :D
JavaScript
4
star
17

hit-plane-old

A game to hit planes.
TypeScript
4
star
18

a-dance-of-fire-and-ice

A canvas game (A Dance of Fire and Ice)
TypeScript
4
star
19

mini-vdom

A mini virtual dom lib. 一个轻量级的虚拟dom库。已经合并到 mini-mvvm
TypeScript
4
star
20

tinypng-fs

Easy to minify PNG with tinypng. 使用 tinypng 去压缩文件。
TypeScript
3
star
21

helm-charts

Some usefull Helm charts and Dockerfiles. 整理一些常用的 Helm charts 和 Dockerfiles。
Mustache
3
star
22

packages

monorepo,封装了一系列的便捷工具包。
TypeScript
2
star
23

nest-app

just learn nestjs.
TypeScript
2
star
24

to-cache

Just to cache >_<#@!
TypeScript
2
star
25

init

Save config for fast inits
JavaScript
2
star
26

duoshou

公司的**项目组,为双11准备的一个H5小游戏
CSS
2
star
27

nuxt-programmatic-failed

Failed to show Nuxt.js app after 5 reloads.
TypeScript
2
star
28

scroll-affix

A lightweight lib for affixing an element as you scroll. 轻量级固钉库。
TypeScript
2
star
29

gos3

基于 Golang 写的 s3 可视化上传工具,运行于 terminal。
Go
1
star
30

react-3d-menu

React's 3D menu component. React 3D 菜单组件。
TypeScript
1
star
31

tween-task

A lib to make easy tween tasks.
TypeScript
1
star
32

mini-dfd

A ext for Promise to make it more easy to use,a deferred like.
JavaScript
1
star
33

my-resume

just my resume
1
star
34

random-dice

摇骰子来决定一些事情。
1
star
35

todo-cli-js

A todo manager on the command-line interface.
TypeScript
1
star
36

todo

我要去做的事情,跟临时的笔记 =。=
1
star
37

gog

Generic data structures and functions of Golang. Golang 的泛型数据结构/方法。
Go
1
star
38

shalldie.github.com

personal website
JavaScript
1
star
39

go-app

A list picker of vue.
Go
1
star