How do I disable suggestions for plain text documents in VScode? - visual-studio-code

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.

Related

Snippets accept with tab but autocomplete disabled unless press ctrl+space

I would like to have autocomplete disabled (unless I press ctrl+space), but also I want to be able to create snippets that populate with tab. How can I have both of these at once?
I'm wondering if I understood you correctly. Here are my opinion, in my understanding.
As for creat snippets, the vscode docs have gien the solution: enter link description here. To simplify, Code -> Prefrences -> User snippets and then New Global Snippets file. Or you can see this question.
Besides, to disable autocomplete, there are several options:
"editor.autoClosingBrackets": false,
"editor.suggestOnTriggerCharacters": false,
"editor.acceptSuggestionOnCommitCharacter": false
...
each has different functions, you can also see the official docs, or I also found another question which may be helpful.
Hope useful.

VSCode: User Snippets showing over path Intellisense

I'm trying to prioritize path intellisense over my user snippets, or just group them with other non-user snippets really. The current behaviour is user snippets -> paths -> other snippets as seen in the screenshot:
I need to navigate paths I don't know the structure but each level I have to scroll down to the suggestion and it's very annoying. I have disabled some snippets, but it's still annoying and it's not worth to turn off custom snippets just because of this.
Some settings I tried are "editor.snippetSuggestions": "inline" and "editor.quickSuggestions": { "strings": false" }. Also tried most popular path autcomplete extensions.
Am I the only one annoyed by this? Is this the default behaviour or did I messed up my config? Thanks in advance.

Only show relevant intellisense suggestions in VSCode editor

This problem is difficult to explain.
In the image below, how do I get VSCode to only show adjL? I only want suggestions from the file I'm currently editing.
Currently, it shows a whole list of variables that I don't ever use.
See here: https://code.visualstudio.com/docs/editor/intellisense
Adding this to your setting.json should do it.
"editor.quickSuggestions": {
"other": false,
"variable": true
}
But I not recomended that, because intellisence is realy helpfull! ;)
Unless you only care about hiding other variables but not other types of prompts.

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.

How can I disable this box on VS Code?

I've searched through similar questions, and couldn't find an answer. It's that box that keeps opening whenever I push Enter, and proceed to include another style component on my stylesheet.
Most of the times it covers a lot of the code when it appears, and this is kinda bothering me. Thanks in advance!
You could stop quick suggestions by adding the following snippet in settings.json
"editor.quickSuggestions": {
"other": false,
"comments": false,
"strings": false
}
Or if you just want to disable only emmet abbreviations, you could do so by adding this property in settings.json
"emmet.showExpandedAbbreviation": "never"
More information about various intellisense and emmet abbreviations settings could be found in the following pages
VS Code intellisense settings
VS Code Emmet settings