Git Product home page Git Product logo

vscode-filebg's Introduction

Custom Background Images for VSCode!

Custom background images for languages in vscode. Quick Demonstration:

2021-09-17.18-00-30.mp4

This extension runs on the vscode custom-css extension.

https://github.com/be5invis/vscode-custom-css

Release Notes v21.1

Added more options to cover different areas of your background. ๐ŸŽด

  • You can only cover your editor area now, for example
  • available modes: fullscreen, fullscreen_notitle, editor, editor_extended, panel, sidebar, sidebar_extended
// available modes: fullscreen, fullscreen_notitle, editor, editor_extended, panel, sidebar, sidebar_extended
FileBG.mode = "fullscreen_notitle";

You can choose one of the modes.

Installation

  1. Download and install the Custom CSS and JS Loader extension from the official link: https://marketplace.visualstudio.com/items?itemName=be5invis.vscode-custom-css
  2. Download FileBG here or from the releases page
  3. Add this code to your settings.json (Ctrl+P -> Open Settings (JSON))
"vscode_custom_css.imports": [
        "file:///D:/path/to/FileBG.js",
],
  1. Don't forget to insert your own path to the FileBG.js file on your computer
  2. Run VSCode with Admin priviliges
  3. Ctrl+P -> Reload Custom CSS and JS, click Restart

It should work now! If it doesn't try to bugfix the Custom CSS JS loader extension.

Wallpaper Configuration

FileBG.config = {
    default: "https://images.alphacoders.com/985/thumb-1920-985802.png",
    plaintext: "https://img5.goodfon.com/wallpaper/nbig/2/28/tsvety-buket-bloknot-1.jpg",
    javascript: "https://www.wallpapertip.com/wmimgs/83-838172_programming-javascript.jpg",
    json: "https://wallpaperaccess.com/full/1555147.png",
    jsonc: "https://wallpaperaccess.com/full/1555147.png",
    html: "https://wallpaperaccess.com/full/4868336.jpg",
}

FileBG.opacity = 0.9;

You can just change the links to the images here. If you want to add your own languages just go into the VSCode devtools (Help -> Toggle Developer Tools) and filter for "FileBG" in the console.

When switching tab to the filetype tab you want to add there should appear the message "Switched to tab with mode xxx" The "xxx" is what the filetype is named in vscode

2021-09-17.18-20-29.mp4

Example:

"Switched to tab with mode css"

FileBG.config = {
    default: "https://images.alphacoders.com/985/thumb-1920-985802.png",
    plaintext: "https://img5.goodfon.com/wallpaper/nbig/2/28/tsvety-buket-bloknot-1.jpg",
    javascript: "https://www.wallpapertip.com/wmimgs/83-838172_programming-javascript.jpg",
    json: "https://wallpaperaccess.com/full/1555147.png",
    jsonc: "https://wallpaperaccess.com/full/1555147.png",
    html: "https://wallpaperaccess.com/full/4868336.jpg",
    css: "https://p4.wallpaperbetter.com/wallpaper/285/806/562/css-css3-wallpaper-preview.jpg" // insert this with your image
}

After configuring reload the JS again. (Ctrl+P -> Reload Custom CSS and JS, click Restart)

Finally

Finally, have fun! The possibilities for theming are endless and your imagination are the only borders! If you have a nice combination you can gladly showcase it here!

vscode-filebg's People

Contributors

tellmewhy12 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.