Coder Social home page Coder Social logo

Comments (4)

obahareth avatar obahareth commented on May 25, 2024 7

I need this as well, for aesthetic reasons. Indent rainbow is very helpful, but I don't need it all of the time. Sometimes all the colors can get distracting.

from vscode-indent-rainbow.

oderwat avatar oderwat commented on May 25, 2024 1

A first step would be to only activate it for the languages you want to use it for.

"indentRainbow.includedLanguages": ["python", "json"]

Or disable it for some:

"indentRainbow.excludedLanguages": ["plaintext"]

Another way could be using a hotkey to toggle settings. This can be done with the "toggle" extension.

https://marketplace.visualstudio.com/items?itemName=rebornix.toggle

And set up a Key similar to this:

                              {
                                "key": "F4",
                                "command": "toggle",
                                "when": "editorTextFocus",
                                "args": {
                                  "id": "indentRainbow",
                                  "value": [
                                    {
                                      "indentRainbow.includedLanguages": []
                                    },
                                    {
                                      "indentRainbow.includedLanguages": ["none"]
                                    },
                                  ]
                                }
                              }

But this will only update the window if the editor switches between files (indent-rainbow does not check it's settings for every keypress).

I agree that a hotkey which lets you switch between "configured languages", "all" and "none" is useful and may implement this "some day".

from vscode-indent-rainbow.

oderwat avatar oderwat commented on May 25, 2024

Whats the reasoning behind it: Aesthetics or performance?

from vscode-indent-rainbow.

Ovyerus avatar Ovyerus commented on May 25, 2024

I agree. I only really need this when I'm cleaning up loose indents or working with something like Python, and having a command to easily toggle this on and off would be a major quality of life improvement IMO.

from vscode-indent-rainbow.

Related Issues (20)

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.