shalldie/vscode-background

Where I can change the background image? there's nothing like that in settings.json

ExtendedMag-dev opened this issue · 17 comments

When I installed the extension background image is there but if I want to change it ? my settings.json looks like this:

code-snapshot2

image

the config you need is here: https://github.com/shalldie/vscode-background#config-%E9%85%8D%E7%BD%AE%E9%A1%B9

set background.useDefault as false,
then background.customImages as ["url1", "url2"]

I mean what is the file I have to change this, this is just the readme?

image

image

Oh i know.
vscode has a setting file named settings.json, you can open it by the way image shows.

The short key is command + , in macOS.

When I installed the extension background image is there but if I want to change it ? my settings.json looks like this:

code-snapshot2

but this is what settings.json looks like!

@2JZxprazz Can't you edit it?

Just add the config into the settings.json

Oh I was confused, thank you for your service

Screenshot 2022-11-29 at 12 04 19 PM

this is what i am seeing in my json settings? what should i do after this?

"background.enabled": true,
"background.loop": false,
"background.useDefault": false,
"background.useFront": false,
"background.style": {
"content": "''",
"pointer-events": "none",
"position": "absolute",
"z-index": "99999",
"width": "100%",
"height": "100%",
"background-size": "cover",
"background-repeat": "no-repeat",
"opacity": 0.1
},
"background.customImages": [
"https://cdn.wallpapersafari.com/5/23/AMbq2m.jpg", //REPLACE THIS
"/home/nl/Downloads/wallhaven-8ok7vk.jpg", //REPLACE THIS
]

should i copy paste this as it is or should i delete what is written in that first and then paste the above code?

@Gaurav-Tewatia answer you at #346

awesome

help~Where went wrong?

There should be a , at the end of workbench.colorTheme, it's a json file.
@13422720

when i added the ","at the workbench.colorTheme".There was no error at all.But when i save the file and close it,it will change back.Why that happened?

sp20231213_145735_013 ![sp20231213_084359_354](https://github.com/shalldie/vscode-background/assets/43122616/c72d7f5d-c109-44cf-97cc-9a9dedf63dfb)

when i added the ","at the workbench.colorTheme".There was no error at all.But when i save the file and close it,it will change back.Why that happened?

@13422720
It seems to have nothing to do with the plugin.
My suggestion is that, close all vsocde and reopen one, try to save some other info into the settings.json, If it's still like this,you can open an issue to vscode.

If you encounter any problems while using this plugin, you can create a separate issue.

Thanks