Comments (10)
Indent Rainbow makes no assumptions about what is "pretty". Just disable error markers for the language or altogether, like so:
"indentRainbow.ignoreErrorLanguages" : [ "*" ]
from vscode-indent-rainbow.
Nice ignoreErrorLanguages
is perfect for my needs.
from vscode-indent-rainbow.
There is a slightly annoying thing that ignoring errors doesn't solve though, the highlight behind the first two characters.
from vscode-indent-rainbow.
That doesn't annoy me as I would not have such kind of indent in my projects. But I guess I would accept a PR for an optional behavior if it doesn't degrade performance too much.
from vscode-indent-rainbow.
Personally I don't like that indentation either, but prettier is opinionated and won't let me change that, believe me, I tried.
I will take a look at the code and see if I can submit a PR request when I have time.
from vscode-indent-rainbow.
@oderwat I'm currently working on this and will probably submit other changes if that's okay with you.
I'm submitting a simple one in a few minutes just so it's not too much at once.
from vscode-indent-rainbow.
After some more thinking about it, I decided that the current behavior is what I want. Resizing the bars to "fit" the code in the last example just looks wrong to me. Change the tab size to two if you write code in this style. You very obviously don't use an indentation of four spaces there.
from vscode-indent-rainbow.
It is 4 spaces but prettier isn't consistent when indenting chained methods.
This is what it looks with 2 spaces:
from vscode-indent-rainbow.
Does anyone know what's logic how rainbow-indent decides the space(2 or 4)?
from vscode-indent-rainbow.
It uses what the editor uses. So it is either a "tab size" or count of "spaces". You can see that in the bottom status bar of the editor window.
from vscode-indent-rainbow.
Related Issues (20)
- When pasting a new file, the color is confused HOT 2
- Lines break up when word wrap is used HOT 8
- oderwat.indent-rainbow_performance issue
- Lists with wrapped text in Markdown have incorrect tab highlighting HOT 5
- Never nester option HOT 2
- indentSetter is not described and does not work HOT 2
- Disable Redundant Indentations HOT 1
- YAML vs yaml indentation?
- Option to color entire line, not just whitespace HOT 2
- empty lines not showing the colors HOT 3
- Improve Clojure/ClojureScript support HOT 1
- No documentation for indentRainbow.indentSetter HOT 1
- In the mode where sticky scroll is enabled, the function does not work HOT 1
- Light mode doesn't work with Tabmix on Jupiter Notebook HOT 1
- Colour empty lines between code when in scopes HOT 1
- Consider verifying publisher status HOT 1
- Light mode for paste code? HOT 1
- Rainbow issue after code saved Javacript file
- Settings for Visual Studio HOT 1
- indent-rainbow does not work with Terraform files HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-indent-rainbow.