Is there a way to make Visual Studio Code show only my snippets when suggestions come up when typing?
I've tried adding different options to my settings.jason file, including trying to make suggestions come on top of others but still no success. Sometimes my snippets don't come on top, or don't come at all in the suggestions box.
Any ideas on how to make only my snippets show, or at least make sure they always come at the top of the list?
"editor.snippetSuggestions": "top",
"editor.quickSuggestions": {
"other": "on",
"comments": "off",
"strings": "off"
},
Related
I'm getting autocomplete without prompting for it by pressing any buttons, menu items, hint popups, or keyboard shortcuts.
I am not sure if it's due to some extension I added. I am new to coding and while this autocomplete is helpful, it wouldn't make me a better programmer. I was wondering how to turn off this setting in VSCode window.
I want them to be totally off.
For the most part, quick suggestions can be disabled for with the following config:
"editor.quickSuggestions": {
"comments": "off",
"strings": "off",
"other": "off"
}
If you want to have different settings per language, you can do it like so (using C++ as an example):
"[cpp]": {
"editor.quickSuggestions": {
"comments": "off",
"strings": "off",
"other": "off"
}
},
From your screenshot, it looks like you have these values set to "inline", which shows them as "ghost text".
Specifically for C++ (and perhaps for similar scenarios with other languages), the quick suggestions may still pop up after typing some characters such as the scope resolution operator (::), but most cases of it will be disabled with this (and I don't know how to fix those specific cases or why they happen (might be worth issue tickets with the tool maintainers)).
This allows you to still trigger autocomplete suggestions by pressing the registered keyboard shortcut. If you actually want to entirely disable intellisense for whichever programming language and extension you are using, that generally just means disabling/deactivating that extension, or using specific settings for that extension to disable intellisense.
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.
I can't seem to find the way to disable suggestions in VS code. I'm not even sure if the boxes that show in the code are called suggestions, but I really want to disable these. They are covering literally almost half of my code. Does anyone know how to disable these boxes?
The top box is parameterHinits, and the bottom box is quickSuggestions.
I think this can solve your problem.
If you don't want quick suggestions, you can set:
"editor.quickSuggestions": {
"other": false,
"comments": false,
"strings": false
}
But I think that is unnecessary, since you can just set a longer editor.quickSuggestionsDelay.
tips: You can always toggle quick suggestion using ctrl + space
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
When I'm not working in JavaScript, Intellisense is unfortunately not often terribly helpful. How can I make it only appear when I hit controlspace, and not just appear automatically?
I don't want to turn it off completely. I just want it to only appear when I explicitly ask it to.
Although the VS Code Intellisense documentation does not define "Quick Suggestions", apparently "quick suggestions" is Intellisense—or is the visible face of it. (Are there also slow suggestions? I have no idea. The name seems to suggest being just one aspect of Intellisense, but... it turns out that it seems to be pretty much the central thing.)
So to stop Intellisense from appearing uninvited, you have to turn off "quick suggestions". Here's how I did that, in my user settings:
"editor.quickSuggestions": {
"other": false,
"comments": false,
"strings": false
},