DEV Community

Cover image for Transparent Background in Vscode
Abraham
Abraham

Posted on

91 3 1 1

Transparent Background in Vscode

So I came across the Show off your VSCode Setup πŸ‘©πŸ»β€πŸ’»πŸ’― Post on Dev.to, and
I decided to post a screenshot of my setup.

So as a reply to a comment, by @FidoHUN, I'll be telling you how to accomplish this.

Applying on Windows

Install the Glass-it Extension from the vscode marketplace

Press ctrl+alt+z to increase the transparency, ctrl+alt+c to decrease.

Linux Screenshot

Applying on Linux

Requirements

  • Xorg display server
  • xprop package.

Then like on windows, install the Glass-it Extension from the vscode marketplace

Press ctrl+alt+z to increase the transparency, ctrl+alt+c to decrease.

Applying on Mac-Os(Untested)

Tweaking Vscode has proven to be harder on the MacOs. But we can try.

Install yabai
Then:



yabai -m rule --add app="Visual Studio Code" opacity=0.7


Enter fullscreen mode Exit fullscreen mode

Happy Vscoding!!!

Heroku

Deploy with ease. Manage efficiently. Scale faster.

Leave the infrastructure headaches to us, while you focus on pushing boundaries, realizing your vision, and making a lasting impression on your users.

Get Started

Top comments (19)

Collapse
 
kimono76 profile image
kimono β€’

Is there any way to apply this on wayland?

Collapse
 
anubra266 profile image
Abraham β€’

Hi...I've not tried it yet.

Collapse
 
jsiu profile image
John Sing Dao Siu β€’

It is working on ubuntu 20.04

Collapse
 
joaofagundesl profile image

Yes, however you need to know you compositor. In my case im using hyprland, so you can edit your hyprland.conf and set the opacity. The opacity will be applied to the entire system. If you want to set only vscode, you can use the windowrules. This extensions won't work because it is based on x11.

Collapse
 
jimbcc profile image
Jim β€’

Yes, It just worked in Wayland, but it's not soft blur, it's just basic transparency

Collapse
 
omarageorge profile image
George Omara β€’

Wow this is Awesome! Tried it, and it just worked.
Thanks a lot for the post.

Collapse
 
shamimsyead profile image
Syead Riad β€’

Theme name please.

Collapse
 
anubra266 profile image
Abraham β€’

Electron Vue Darker

Collapse
 
shamimsyead profile image
Syead Riad β€’

Thanks. Its beautiful.

Collapse
 
fidohun profile image
FidoHUN β€’

Wow! Thanks bro! I thought thats a wallpaper, not a glass effect, but it looks really nice with my desktop background. Thanks the tutorial!

Collapse
 
kaspermroz profile image
Kasper MrΓ³z β€’

This looks so cool, gotta try it out on MacOS!✨

Collapse
 
prajulaaditya007 profile image
Prajul Sahu β€’

Did you try it? I'm using Ventura, will glassit work?

Collapse
 
jami999 profile image
jami β€’

I tried like this

yabai -m rule --add app="^Code$" opacity=0.3
Enter fullscreen mode Exit fullscreen mode

But it doesn't work on Intel Mac 2020 Sonoma.

Collapse
 
nivicius profile image
Vinicius Pereira β€’

Very good! Thank you!

Collapse
 
inaciolopes1 profile image
InΓ‘cio Lopes β€’

Does not work on macOS 10.15

Collapse
 
kiyosama17 profile image
Kiyosama β€’

the extension also makes the code transparent, not just the background. and that's very annoying for me.

Collapse
 
calvinkwame profile image
UrAverageGhanaian β€’

How do I completely revert this to default? I uninstalled the Glasslit extension but the effect persists. Any help?

Eliminate Context Switching and Maximize Productivity

Pieces.app

Pieces Copilot is your personalized workflow assistant, working alongside your favorite apps. Ask questions about entire repositories, generate contextualized code, save and reuse useful snippets, and streamline your development process.

Learn more

πŸ‘‹ Kindness is contagious

DEV is better (more customized, reading settings like dark mode etc) when you're signed in!

Okay