Faded commands and variables in VSCode - visual-studio-code

In VSCode when I indent some commands or variables correctly, they got faded. Can anyone tell me why this happens (is it really connected with indentation?) and how I can get rid of this annoying issue?
Faded lines in the case of correct indentation but not always!
In the wrong indentation, everything seems correct
Output which is correct

I have opened an issue in Pylance and here is the discussion, cause, and solution:
https://github.com/microsoft/pylance-release/issues/3240
(Unreasonable faded lines #3240)
another useful link could be:
https://github.com/microsoft/pylance-release/issues/3195

Related

/ added to top bar in vscode wsl

I have an extremely frustrating issue, where somehow vscode is adding a "/" to the top bar and then when I go to open a WSL window, it throws errors and isn't usable...
I know for sure that this is causing the issue because at one point I had it solved it, but I don't know how I did it (the ultimate frustration) and again, not sure what I did but the problem is back.
EDIT: I found one way to reliably get past it, which was using the WSL terminal in the directory I want to open and running code .
Would appreciate anyone chiming in who has more insight, though..
How do I edit this default on the top bar?
(see highlighted image below)
I have tried reinstalling vscode
Thanks in advance
As commented by #rioV8 the solution seems to be searching for window title

How to stop prettier from random line breaks?

So Prettier is finicky as it is, but here's a weird situation. The image below shows what happens after a save in VS Code with Prettier set up normally. It randomly removed the tabs for these two lines. If I tab it back into place and save it does it again.
Can anyone tell me why, and how to stop it? Makes the code look really bad.

How to fix code highlighted in red in VS Code

This happened suddenly after I restarted my computer, all of a sudden any code I type is highlighted in red. Does anyone know how to fix this? See image.
OS: Windows
UPDATE:
This is the weirdest thing, I simply restarted my computer (again), and it just disappeared. It's a shame, because I didn't get to figure out how it happened, but it's good to know about this Bisect feature in VS Code!
This might have something to do with one of your extensions acting up.
VScode has a nice feature to help you find the specific extension that's causing problems without you having to check each one individually.
VScode bisect function.
Press crtl+p then type bisect
It may be one of your extensions that makes this. You can check it by disabling them one by one(ctrl + shift +X and then choose installed). I guess maybe an extension that belongs these:enter image description here.
Hope helpful.

Why is my text all black and not auto indenting in emacs

In one of my files, everything was working fine. Things were being color-coded and auto-intending perfectly for me. When I started a new file to work on some other code, I noticed that the text was black and nothing was being indented for me. I tried asking google a whole bunch of questions like, "how to turn on auto-indent for emacs" and "how to change the theme color." I tried following suggestions online, but none seem to work. Is there a way I could reset my settings to default?
When creating a name for the file I forgot to put .cpp at the end. Sorry for the waste of time and Thank you to everyone who tried to help me.

Is there a way configure NetBeans to block indent with the Tab key?

I started using NetBeans for Python development, and so far it looks pretty good. One thing that bothers me is that when I highlight a few lines of text and hit the Tab key, it doesn't do what almost every other editor does, but rather just adds four spaces at the end of the block.
I know NetBeans has a block indent action (somewhat oddly called "Shift Right"), but it seems impossible to bind the Tab key to anything. For now I've settled on Ctrl+Shift+I for block indent as a tribute to my Delphi days, but really, I'd just like make it work like Eclipse/IntelliJ/Notepad2 and do a block indent on Tab.
Any tips?
EDIT: OK, so it seems that this behavior only occurs if I select a bunch of lines and the cursor is positioned on an empty line. This looks like a bug, so I'm going to file a report.
Thanks guys!
EDIT 2: In case anyone's interested, Issue 155735
This should be fixed now - in build #415 and later from http://deadlock.netbeans.org/hudson/job/python/ . Thanks for the bug report.
Tab should indent the selected lines, and Shift-Tab dedent. The behavior you're describing sounds like a bug. Can you open the keybindings dialog and see what your Tab key is bound to?
Another thing you could try is clearing your userdir in case there is old cruft in there.
If these things don't work, please file an issue so we can reproduce and track this down --
http://scripting.netbeans.org/issues/enter_bug.cgi?component=python&issue_type=DEFECT
-- Tor
Had you changed the default keys at some point? Tab works for block indent for me.