Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ExtendedMag-dev opened this issue Dec 2, 2021 · 17 comments

Comments

@ExtendedMag-dev
Copy link

ExtendedMag-dev commented Dec 2, 2021

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

code-snapshot2

@shalldie
Copy link
Owner

shalldie commented Dec 3, 2021

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"]

@ExtendedMag-dev
Copy link
Author

ExtendedMag-dev commented Dec 3, 2021

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

@shalldie
Copy link
Owner

shalldie commented Dec 3, 2021

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.

@ExtendedMag-dev
Copy link
Author

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!

@shalldie
Copy link
Owner

shalldie commented Dec 4, 2021

@2JZxprazz Can't you edit it?

Just add the config into the settings.json

@ExtendedMag-dev
Copy link
Author

ExtendedMag-dev commented Dec 4, 2021

Oh I was confused, thank you for your service

@Gaurav-Tewatia
Copy link

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?

@Gaurav-Tewatia
Copy link

"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?

@shalldie
Copy link
Owner

@Gaurav-Tewatia answer you at #346

@gyk-123
Copy link

gyk-123 commented Jan 13, 2023

awesome

@13422720
Copy link

help~Where went wrong?

@13422720
Copy link

sp20231213_084359_354

@shalldie
Copy link
Owner

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

@13422720
Copy link

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
Copy link

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

@shalldie
Copy link
Owner

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.

@13422720
Copy link

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants