How to disable the first suggestions in vscode - visual-studio-code

How to disable the first suggestion? when I press tab, it just finishes the word only, different from the second one
I want the first suggestion is deleted, and the second becomes the first suggestion

The first suggestion is keyword (text) suggestion.
The second is a snippet suggestion.
You can change the setting: editor.snippetSuggestions (Editor: Snippet Suggestion in GUI) and set its value to top
"editor.snippetSuggestions": "top"
Or change the setting: editor.suggest.showWords
"editor.suggest.showWords": false
There are many other suggest settings, use the Settings GUI to search for it.

Related

VS Code Autocomplete Doesn't show after using it

it's a simple problem that has been bothering me for a long time, when I use autocomplete, the text I write after it becomes highlighted and suggestions don't show up anymore, does anyone know how to disable it?
it goes back to normal after pressing ESC
Video Example
The Solution is to go to VS Code Settings and disable following setting:
"editor.suggest.snippetsPreventQuickSuggestions": false // enables suggestions

right click context menu in vs code executes immediately

When I right click in the editor, vs code executes whatever menu item the cursor happens to be over. It happens far too fast for me to make my actual choice known.
I have already spent 30 minutes trying to find a solution. If you search for "right click" in the Command Palette, you are told there are no matches. You don't get any hits in the docs, either. Please advise. Thank you.
It has been reported that the situation you mentioned is a bug in the repository on GitHub. It is reported that Visual Studio Code works fine when zoom is disabled.
You can update the following setting to override this behavior:
"editor.mouseWheelZoom": false
Or you can update the mouseWheelZoom setting from the pop-up window by using the shortcut CTRL + , to go to Settings.
It's crazy, but this is still an issue for Linux users after so many years. Especially, when using a Laptop with touch-pad it makes VSCode frustrating to use. The problem occurs when you use "native" window style (you can tell, because the theme will not be applied to context menus) and have a non-default zoom.
The GitHub issue that #sercan linked to has a few solutions. In order to save you some time, there is basically two things that I found work and make sense:
Set your zoom level to default / 0. In settings.json add: "window.zoomLevel": 0 This works with all window styles, but obviously is not always viable
Change the title bar style from native to custom. In settings.json add: "window.titleBarStyle": "custom" This will change how the title bar but also the context menus look. Setting this, you can zoom in again

How to disable function signature suggestion popups in vscode?

I disabled all the suggestions options I could find in settings, but this one still pops up.
How could I disable it?
Te VS Code term for this is signature-help/parameter-hints. To disable them, just set:
"editor.parameterHints.enabled:: false
After disabling, you can manually show the parameter hints at the current location using the Trigger parameter hints command

How to stop VS code from automatically entering parameters into my callback function (stop inserting suggestions on a keypress)?

I am using VS Code version 1.25.1. This behaviour wasn't in any of the previous version and I'm not able to find the setting in settings.json to help me out. I couldn't find a post on this issue so I'm posting this.
When I press ,
This behaviour is very irritating and unproductive and I was wondering how can I edit my settings.json to disable this.
Edit
Note: I am using default settings.
"editor.acceptSuggestionOnCommitCharacter": false
will remove the , as a completion (commit) character. You can still use Tab or Enter to apply the highlighted suggestion.

VSCode Scrolling to next line on long lines of code

When I highlight a long line of code - if I barely move my mouse to the row above or below it will automatically go to the beginning of the line. Really annoying for simple highlight and change edits. At the moment, I only use my arrow keys as an alternative.. or I have to be very careful and not get close to the row above and below the line I'm working on. I've attached a GIF as an example.
I've looked in the settings for "scroll" options and i'm unable to find anything. Anyone have any ideas?
https://giphy.com/gifs/3ohc1be4q9OaSsRIPu
Workaround. Use word wrap: "editor.wordWrap": "on"
You can even enable it temporarily (editor.action.toggleWordWrap alt+z)