Is there a way to use style lint quick fix in VS Code?
with My Code Actions you can write Quick Fixes yourself for the most frequent errors you make based on the diagnostics in the PROBLEMS panel.
Related
If this is due to an extension, how can I remove that extension?
It overwrites my custom snippet, which bothers me.
I disabled many extensions, but nothing changed.
What you're seeing in your screenshot (suggestions for dba_<etc.>) are not coming from any extension. One can verify that by running the command Developer: Reload With Extensions Disabled and trying triggering suggestions again. So this is just functionality that comes out-of-box with a standard VS Code installation. You don't even need to install any PHP extension to get this.
As for your custom snippets getting "overwritten", it's hard to tell without more detail why this is happening. If you're on version 1.75, it might just be due to a bug that will be fixed later (Ex. As was the case in this other recent Q&A: Visual Studio Code's recent update is disrupting autocompletion).
As #Mark showed in their answer, these are function suggestions. You can disable function suggestions with the following setting:
"[php]": {
"editor.suggest.showFunctions": false
}
Those icons indicate that those are Methods and Functions (not Snippets). See What do the Intellisense icons mean.
So you can try to disable two settings in your Settings UI:
Editor > Suggest: Show Methods
Editor > Suggest: Show Functions - this looks like the right one to disable
Of course, there might be situations where you want to see Function suggestions, so you will have to see if disabling the setting is acceptable.
You can disable those Function suggestions for php files only with this setting (in your settings.json):
"[php]": {
"editor.suggest.showFunctions": false
}
I am using ESLint in my React project to format and lint my code. I use VSCode as editor, and I find the "Quick Fix" suggestions offered by VSCode quite handy, like "import module" etc. However, after enabling ESLint, the default Quick Fix suggestion of VSCode is replaced by ESLint's Quick Fix suggestions:
How do I disable this? Please note that I still want ESLint to format and fix my code, but I don't want its quick fix suggestions. Instead I want VSCode to show its original Quick Fix suggestions. Like in above case, I want VSCode to suggest importing Link from react-router-dom rather than ESlint offering me its own quick fix suggestions (this was happening before enabling ESLint).
I had a similar issue with bash scripts. Disabling the ShellCheck extension solved the issue for me.
I would like to hide debug-log with uninformative information in VS Code.
In v3.4.0 of the Dart/Flutter extensions for VS Code, error messages should be improved:
https://dartcode.org/releases/v3-4/#improved-flutter-errors
If you see any bad errors/stack traces when using the latest version of Flutter and the VS Code extensions, please open issues on GitHub with examples. Thanks!
Why does my cursor jump to the last line of code when I create new tags? For example, when I type a comment in HTML, as soon as I type the !, it jumps to the bottom. What setting do I have to change to prevent this from happening? It is very annoying. I am just starting to use VS Code so sorry if this is a really simple fix.
I had a similar issue. The Flow Language Support extension was causing it. I disabled it, and then the issue was gone.
I had the same issue when I first started using vscode.
Explanation
Generally, the issue is caused by an extension of some sort that is messing with your IDE. Like the extension is trying to do its job but either there is a conflict with other extensions or vscode settings or that's how it works.
More specifically, I found the issue was caused by the the HTML, CSS, JS formatter extension.
Solution
If you have that extension, try disabling it and restart vscode. if the issue is fixed then you may leave it disabled or uninstall it. If it is not solved repeat the process with other extensions, especially those that format your code, until you find the culprit and remove it.
Also i got this type of issue.The solution is just disable your auto save it will work.
If you're an Angular developer, maybe consider disabling Angular Essentials Extension by "John Papa". Then restart VS Code.
That worked for me after several frustrations.
I have tried lots of settings based on my google searches and all of my imported files still have errors regarding to the spaces/indentation.
Please use space for indentation.
Every file is full of these crazy errors.
How in the world do you get rid of this? I've tried to disable Detect Indentation settings amongst others but nothing seems to work.
The problem was the Prophet Htmlhint setting. Simply uncheck that and this will fix the issue.