You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support user stylesheet(s) and user script(s) #459
Atom equivalent: "Open Your Stylesheet" and "Open Your Init Script".
It's nice to be able to make small changes (e.g. I like to use a 1px-wide cursor instead of the default 2px), without having to create a theme/extension.
Reacted by Belleve, Brad Gashler, Georgi Georgiev, Dave Ackerman, Chris Bailey, Dominique Müller, Neko Hz, Mislav Paparella, Kaiyuan Liu, Levan Gabeskiria and 129 more
Reacted by Alireza Safaierad, cy, Marc Newman and Jared Reich
Reacted by Přemysl Karbula, Midori Kochiya, Loris Bettazza, Ricardo Amaral, Mick Dekkers, Ihor Halchevskyi, Michael Tuttle, Justin Morris, Sutthichok Wongthavorn, Winnie Quinn and 27 more
I think this is an important feature. Being able to make a small tweak to an existing theme without having to deploy an entirely new theme is extremely useful when you've found a theme that pretty much suits your tastes. Maybe you want the background to be a touch darker, or to remove the underlining on function names or something. Having to build an entirely new theme is a distraction when you could simply pop open a stylesheet, add a single overriding rule and get on with things.
Reacted by Yukai Huang, AB, Michael Kühnel, Glen, Jiayi Hu, Sander Bouwhuis, Winnie Quinn, Jens Hausdorf, Erick Montañez, Brandon J. Boone and 9 more
My use case: the Intellisense popup is not wide enough, so sometimes I don't see arguments to methods, for instance. Things I've tried: No handles to resize; Trackpad doesn't scroll it sideways.
Reacted by Mick Dekkers, Mike Lischke, Erick Montañez, Michał Noszczak, Abhinav Gauniyal, zhao5363 and Alexander
The new theming options that have been made available recently are absolutely amazing and cover probably 90% of the use cases this would have, but I still think there is a use case for allowing users/themes to inject CSS styles. I am using the vscode-custom-css plugin, for instance, to add styles that allow me to have a vertical tab-bar:
When I open a large number of files seeing them all at once vertically makes it much easier to find them and remember what I'm doing. In general, more drastic UI customization and experimentation with different UI/UX flows is what I'm getting at here. This is one of the major advantages of VS Code and electron based editors in general vs IDEs - we can experiment with UX, and try to find better flows and patterns rather than being stuck in the same old workflows from 10 years ago.
On the flip side, opening the pandora's box of custom CSS means that the HTML/CSS structure of the app is no longer private API, and internal changes could break lots of plugins. Maybe there's a way we can get the best of both worlds, an API that allows us to experiment like so without strongly tying things to the underlying structure and styles. Or maybe it should just be very explicit using CSS means anything could break at any time, and it's on addon authors to navigate that.
Reacted by Mick Dekkers, apk, Yukai Huang, zhao5363 and pandada8
I feel like there's a balance to be struck here. Exposing this as an API to the extension developers isn't even necessary at first - I would settle for a supported way of loading a custom stylesheet. Support for live reload (similar to how it works for settings.json) would go a long way, too.
The vscode-custom-css extension covers my use case (applying a css filter style to increase text contrast in difficult lighting conditions) but it feels like a bit of a hack; it requires admin rights, makes vscode complain about a corrupted installation and I expect it to fail after an update or two.
Similarly to the other commenters, I used vscode-custom-css to make small tweaks to the display of files in Explorer. Being able to customize the editor's visuals to your own needs would add an amazing layer of control on top of an already great editor.
I feel like there's a balance to be struck here. Exposing this as an API to the extension developers isn't even necessary at first
Indeed. I think the biggest use case here is for end-users to be able to make small tweaks without requiring the time investment of building their own theme or forking the one they're using. The possibility to have live-reload of custom CSS and a much more clean solution than what vscode-custom-css can offer would be great reasons to pursue this.
Benjamin Pasero (@bpasero), seeing you close this PR #40764 (comment) attempting to fix the issue you can as well close this, since there is no intention to allow this kind of modifications whatsoever. The next user won't waste their time making a new PR.
Benjamin Pasero (@bpasero) is there an issue tracking the ability to easily create user scripts, analogous to using the "Open Your Init Script" menu item in atom?
Thomas Hickman (@ThomasHickman) is that about injecting custom JavaScript into VS Code on startup? We would probably not accept that either for similar reasons as outlined in #40764 (comment)
Hmm, I was thinking of a feature where would you would be able to add JavaScript macros, which would execute as if they were an extension e.g. in javascript psudocode, this could be in the "init script":
addCommand("repeat_text",()=>{lettext=user_input("What text would you like to repeat?");letrepeat_times=parseInt(user_input("How many times would you like repeat the text?"))text_editor.insert(text.repeat(repeat_times));})
This is what I use the "Open Your Init Script" feature in atom for, however I think this would probably depend on #1422 being resolved
Thomas Hickman (@ThomasHickman) I see, that sounds a bit different from this request so maybe worthwhile to file as feature request (after searching for duplicates).
I agree that doing this manual solution each time is stupid and unnecessary (I am using a macro to do it for me) as it could be a simple setting that writes a string to that place.
But as long as nobody in the vscode team knows how to program this feature into the software, we have no other option to make GUI presentable.
Activity
bgashler1 commentedon May 9, 2016
Chris Dias (@chrisdias) any thoughts on user stylesheets here?
dmackerman commentedon Jun 23, 2016
This would be a killer feature.
be5invis commentedon Sep 12, 2016
This?
https://github.com/be5invis/vscode-custom-css
glen-84 commentedon Sep 12, 2016
Belleve (@be5invis) It needs to be based on a supported API.
axefrog commentedon Nov 2, 2016
I think this is an important feature. Being able to make a small tweak to an existing theme without having to deploy an entirely new theme is extremely useful when you've found a theme that pretty much suits your tastes. Maybe you want the background to be a touch darker, or to remove the underlining on function names or something. Having to build an entirely new theme is a distraction when you could simply pop open a stylesheet, add a single overriding rule and get on with things.
opyate commentedon Feb 1, 2017
My use case: the Intellisense popup is not wide enough, so sometimes I don't see arguments to methods, for instance. Things I've tried: No handles to resize; Trackpad doesn't scroll it sideways.
glen-84 commentedon Feb 4, 2017
Juan M Uys (@opyate) That should probably be reported as a bug (if it hasn't already been).
pzuraq commentedon Sep 15, 2017
The new theming options that have been made available recently are absolutely amazing and cover probably 90% of the use cases this would have, but I still think there is a use case for allowing users/themes to inject CSS styles. I am using the vscode-custom-css plugin, for instance, to add styles that allow me to have a vertical tab-bar:
When I open a large number of files seeing them all at once vertically makes it much easier to find them and remember what I'm doing. In general, more drastic UI customization and experimentation with different UI/UX flows is what I'm getting at here. This is one of the major advantages of VS Code and electron based editors in general vs IDEs - we can experiment with UX, and try to find better flows and patterns rather than being stuck in the same old workflows from 10 years ago.
On the flip side, opening the pandora's box of custom CSS means that the HTML/CSS structure of the app is no longer private API, and internal changes could break lots of plugins. Maybe there's a way we can get the best of both worlds, an API that allows us to experiment like so without strongly tying things to the underlying structure and styles. Or maybe it should just be very explicit using CSS means anything could break at any time, and it's on addon authors to navigate that.
apkd commentedon Sep 29, 2017
I feel like there's a balance to be struck here. Exposing this as an API to the extension developers isn't even necessary at first - I would settle for a supported way of loading a custom stylesheet. Support for live reload (similar to how it works for
settings.json) would go a long way, too.The
vscode-custom-cssextension covers my use case (applying a cssfilterstyle to increase text contrast in difficult lighting conditions) but it feels like a bit of a hack; it requires admin rights, makes vscode complain about a corrupted installation and I expect it to fail after an update or two.gabrielecirulli commentedon Nov 2, 2017
Similarly to the other commenters, I used vscode-custom-css to make small tweaks to the display of files in Explorer. Being able to customize the editor's visuals to your own needs would add an amazing layer of control on top of an already great editor.
Indeed. I think the biggest use case here is for end-users to be able to make small tweaks without requiring the time investment of building their own theme or forking the one they're using. The possibility to have live-reload of custom CSS and a much more clean solution than what vscode-custom-css can offer would be great reasons to pursue this.
3 remaining items
usernamehw commentedon Jan 5, 2018
Benjamin Pasero (@bpasero), seeing you close this PR #40764 (comment) attempting to fix the issue you can as well close this, since there is no intention to allow this kind of modifications whatsoever. The next user won't waste their time making a new PR.
bpasero commentedon Jan 5, 2018
Alexander (@usernamehw) yes good point. Closing as per #40764 (comment)
People that have voted on this issue please cast your vote on the related theming issues, e.g. #26128, #26129 and #26130
ThomasHickman commentedon Jan 10, 2018
Benjamin Pasero (@bpasero) is there an issue tracking the ability to easily create user scripts, analogous to using the "Open Your Init Script" menu item in atom?
bpasero commentedon Jan 10, 2018
Thomas Hickman (@ThomasHickman) is that about injecting custom JavaScript into VS Code on startup? We would probably not accept that either for similar reasons as outlined in #40764 (comment)
ThomasHickman commentedon Jan 10, 2018
Hmm, I was thinking of a feature where would you would be able to add JavaScript macros, which would execute as if they were an extension e.g. in javascript psudocode, this could be in the "init script":
This is what I use the "Open Your Init Script" feature in atom for, however I think this would probably depend on #1422 being resolved
bpasero commentedon Jan 10, 2018
Thomas Hickman (@ThomasHickman) I see, that sounds a bit different from this request so maybe worthwhile to file as feature request (after searching for duplicates).
andraz commentedon Jan 29, 2018
Quick fix: copy-paste or enter css manually upon each app start, steps described in the #42336
andraz commentedon Jan 29, 2018
I agree that doing this manual solution each time is stupid and unnecessary (I am using a macro to do it for me) as it could be a simple setting that writes a string to that place.
But as long as nobody in the vscode team knows how to program this feature into the software, we have no other option to make GUI presentable.