Cannot disable language "keyword" suggestions in VSCode with "editor.suggest.showKeywords": false - visual-studio-code

I have been trying to disable the keyword popup in VSCode, but the suggested method of adding "editor.suggests.showKeywords": false, doesn't work, as suggested in this post.
This is how it looks in my settings.json file, along with some other attempts that also haven't worked, commented out.
Any ideas on how to disable this?

I got it to work. I had the Pylance extension installed. By setting the languageServer to jedi, and switching to the following, I fixed the issue:
"Pylance": "python.languageServer": "Pylance"

Related

python.defaultInterpreterPath in vscode shows as "unkonwn configuration setting"

The old python.pythonPath has been deprecated in the latest vscode 1.64.1 and replaced by python.defaultInterpreterPath. However, when I set it in projectname/.vscode/settings.json, it is greyed and shown a popup as:
unkonwn configuration setting
This still persists even after restarting vscode.
Anyone can shed some light on this issue?
Thanks
It may be solved now, or just remember to avoid using the "settings" key again, within a settings.json file, but a single dict, eg:
{
"python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python"
}

How do I disable suggestions for plain text documents in VScode?

I sometimes use VScode for plain text documents, however I'm constantly interrupted by suggestions to use particular words:
How can I stop this behavior for txt files? I would still like suggestions for code.
Via this VScode bug and various related bugs I've attempted the following:
"[txt]": {
"editor.quickSuggestions": false
}
However that does not stop the suggestions from happening.
Found the answer to this one myself, via this screenshot on a related bug - pasting it here to help others:
"[plaintext]": {
"editor.wordBasedSuggestions": false,
"editor.quickSuggestions": false
},
this worked for me:
command palette -> Preferences: configure language specific settings
under suggestions, go to Editor: Quick suggestions, and under the other item, change the value from on to off.
Note there were two other confusingly-named settings: Inline suggest: enabled and `Editor: Snippet suggestions". I had no idea what they meant, but they were not relevant here.

How to fix jsdoc autocomplete not working in vscode

I have a project where my jsdoc autocomplete doesn't work in vscode.
Any ideas why or settings I can check to figure out why hitting enter doesn't automatically add a line with a *?
These are my enabled extensions:
I had the same issue on my Angular project. What I did is to add "editor.autoClosingBrackets": "languageDefined" per language like this:
"[javascript]": {
"editor.autoClosingBrackets": "languageDefined"
},
"[typescript]": {
"editor.autoClosingBrackets": "languageDefined"
}
This works for me but it's annoying though because you have to do it per language. But I think they're working on this. github
I also had the same issue, I got it fixed by setting the showWords to true
"editor.suggest.showWords": true
Kind of a bummer though, I really wanted to disable word suggestions but keep using the JSDoc, but for now I will just filter them out.
Hopefully, this will help someone having this issue.
For everyone who has the same problem.
I found this answer useful. It looks like VSCode is treating comments on the same way like Brackets.
editor.autoClosingBrackets
I had this configuration on "never" and changed it to "languageDefined".
For me the culprit was the GitHub Copilot extension, like mentioned in this answer.
In summary, disable the extension,
or
open settings (f1 -> Open Settings(JSON)) and add
"editor.autoClosingBrackets": "languageDefined",
"[javascript]": {
"editor.autoClosingBrackets": "languageDefined"
},
"[typescript]": {
"editor.autoClosingBrackets": "languageDefined"
},
and other languages you use I guess
In my case, it was the editor.autoIndent preference setting that was set to none. Setting it to advanced or full fixes the issue with jsdoc indent autocompletion on Enter.

VS code doesn't gray out unused variables

As far as I know it seems this is the setting you enter in your settings.json to enable unused variables & imports that aren't used to appear grayed out.
"editor.showUnused": true,
I do get an underline and if you hover I get an underline and message on hover.
What am I missing?
In my settings.json apparently I commented that the following did the trick.
"javascript.validate.enable": true,
/* this controls having your unused imports or variables to appear grey */
* builtin language features extension solution:
I am adding this just in case someone gets stuck like me. I had the same issue and the following was the problem.
vscode has #builtin extensions. One of them is typescript and javascript language features. If it is disabled the features will not work. So just go to extension and search #builtin typescript and javacsrtipt language feature`, click the cog icon and enable the extension.
September 2020
For me, adding "editor.showUnused": true, in settings.json in the .vscode directory worked.
In my case deno extension was causing the problem. disabling it seems to fix the issue.

Visual Studio Code doesn't insert snippet

I have installed Reactjs code snippets code snippet extension.
Snippets used to work Until I installed PHP Storm Keymap extension.
In a JSX (or JS) file when I try to add snippet the editor converts it to a tag instead of completing the snippet. ( It will convert rcc to <rcc></rcc> instead of completing snippet.)
I checked my Keyboard Shortcuts both, exmpandAbbreviation and insertSnippet are set on tab I tested changing insertSnippet to other keybinding but it still doesn't work.
Any thoughts?
Apparently adding
"editor.tabCompletion": true
to settings.json solves the problem.
I went to my setting.json file and had to delete this line
"editor.snippetSuggestions": "none",
and that worked.