How to disable infinitely indexing source files in Visual Studio Code - visual-studio-code

My Visual Studio Code (1.16.1) doesn't stop this indexing anymore. I try to wait too long time, but it indexing continues with hard disk extensive loading.
How can i find solution for this problem? I'd like to indexing working, but wan't doing it all of time when Visual Studio runned. Help me, please.
P.S. When I close Visual Studio Code - hard disk become to still and isn't hearing.

After two hours of lazy digging to this trouble, i find solution: that is a "vscode-ruby" extension. After uninstalling problem discontinued.
So, question tag need to be updated: 'vscode-ruby' tags needs.

"Disabling indexing would break most functionality and it would not be helpful providing a config option for this."
https://github.com/bmewburn/vscode-intelephense/issues/71

Related

Different indentation in VSCode in the same project

I've always worked in VSCode indenting either with spaces or tabs, but with a size of 3 or more. But, currently, I'm working on a project where everything is configured to work in a size of 2. My issue is I really struggle to read with that size, I can barely identify each line of code and indentations, even with the visual guides that VSCode gives, and it is super uncomfortable to work in this way. I guess I have some visual impairment.
Is there an easy way, to work on a size of 3 or more for development purposes, but keep the files of the project in their original size? I'm looking just for a visual solution.
I couldn't find anything related, the only thing that I can think of now is every time I merge my changes, change the Prettier config, and format everything again, but I guess this could create issues for the maintenance of the repository.
Thanks in advance for your help!
I've found a VSCode extension called stretchy-spaces, maybe it will solve your problem
https://marketplace.visualstudio.com/items?itemName=kylepaulsen.stretchy-spaces

How do I fix intellisense in Vs code?

I have tried finding answers but none are helping so far.
It seems my VS code is not running correctly.
It does not autocomplete, does not show if something is missing a reference like controllerbase in this case, although it breaks the build:
It also does not pick up existing items to select while typing at all.
I have re installed VS code and of course restarted it.
Any help is appreciated.
Thanks
You most to be sure that only have the plugins that you need some times many plugins can create bad behavior in vs code intellisense

Visual Studio Code javascript suggestions is not working properly, too many annoying options

Visual studio code has too many annoying suggestions.
But the real one are not showing at the first time, unless we input enough prefix characters.
Any idea? Wrong settings?

Something is wrong with Visual Studio Code syntax highlighting or simply the text display

I don't know how to describe my problem except via picture.
Don't judge my code, but if you look between the letters you will see random bits of characters. This Doesn't seem to effect how it compiles and runs, but I really want it to go away.
I've tried restarting visual studio code, closing the document withing visual studio code and reopening, and restarting my computer. Beyond that, I have no ideas. I think this problem may have started when I elected to install C/C++ Intellisense.
a Screenshot of my Code
fyi: I don't know how to word my problem in a way that helps google take me to relevant sources.

How to keep code-folding on save in Visual studio code

I am working on some fairly large files in Visual Studio code and to save time I fold away functions and scopes, that I do not want to see. Everytime I save, which I do fairly often just out of habit, all the folds expand again and the current position on screen changes.
Since the only settings I could find were:
"editor.folding": true,
"editor.showFoldingControls": "mouseover",
the question is: How can I keep my folds upon saving?
Thank you for bringing up the extensions Mark. It was indeed an extension: lonefy.vscode-js-css-html-formatter.
Once this was disabled, the folding kept its state after saving.
For me it was the prettier plugin :(
Here is the closed issue: https://github.com/prettier/prettier-vscode/issues/408.
At the moment, there doesn't seem to be a fix.
For anyone that comes across this like me, I didn't have prettier, sort-imports, or lonefy. I was able to resolve by updating the 'folding strategy' setting from 'auto' to 'indentation' and it kept my folds persistent through saving and particularly in my case deploying code using the Salesforce CLI extension.
https://code.visualstudio.com/api/language-extensions/language-configuration-guide#folding
Had the same issue and it turned out to be the sort-imports extension. Removing it fixed the issue.
For future reference, I found this in the settings and it fixes the problem for prettier.
"editor.formatOnSaveMode": "modificationsIfAvailable"