This question already has answers here:
Unable to turn off code suggestions in Visual Studio Code
(2 answers)
Closed 17 days ago.
How can I disable the suggestion box for method parameters? (I still want to be able to make it show with the option+space shortcut, if possible)
I write some code, then I type ,. The suggestion box comes up:
I then press Enter to go on the new line, and the suggestion block covers my code:
I tried going through the VSCode settings, but couldn't find the setting for this method parameter suggestion box. I don't know what verbiage is used in the documentation to refer to this box.
These are called "parameter hints". You can turn off the automatic parameter hint popup by putting this in a settings.json file:
"editor.parameterHints.enabled": false
That setting's documentation/description says:
Enables a pop-up that shows parameter documentation and type information as you type.
You can then manually trigger it with the Trigger Parameter Hints command, or the corresponding keyboard shortcut:
Windows: ctrl+shift+space
MacOS: command+shift+space
Related
In vs code when i type a dot(.) and then a method a pop-up shows with the method definition.
my question is after i accept that method i no longer get the documentation and i might want to for example verify what the return value is of this particular method.
I have tried highlighting the method, ctrl-space on the method and googling for an answer with no luck
Ctrl+Space for intellisense
Ctrl+Shift+Space to Trigger Parameter Hints
VSCode Intellisense
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
When I edit JavaScript code, VSCode immediately show me a popup with a list of parameters as soon as I have typed a function name followed by (.
When editing Dart code this is not the case. Here I have to use the mouse to hover over the function name to show a popup with information about the function.
Is this normal behaviour? Are there any way to change this behaviour? Does anyone know a shortcut to show the popup?
This is controlled by a VS Code user setting in the Dart extension (dart.triggerSignatureHelpAutomatically). It's not on by default because there are some quirks (that I don't remember exactly off the top of my head).
There's work in progress to move the extension to using the LSP protocol which will push some of this functionality into the Dart analysis server, which may make it easier to make some functionality like this more reliable (since more info is available in the language server than is currently exposed to the VS Code extension).
In visual studio code (1.29.1) ctrl+a doesn't do anything for me. I checked keyboard shortcuts and it's mapped to a few select all actions (editor.action.selectAll, etc.) but when I'm in a file and press it nothing happens. How do I select all text in the current file in visual studio code?
Thanks for the comments, it make me realize it must be an environmental issue. Turns out if you have any mapping starting with a key combination that will lock that mapping to the key combo and you can't use it for anything else.
To make save all ctrl+shift+s I had to re-map save as and I mapped it to ctrl+a+s, so everytime I hit ctrl+a it just waiting for second key. In the status bar at the bottom of my editor it said something like "Ctrl+a detected, waiting for second keystroke", which means Ctrl+a won't work on its own. I re-mapped Save As to some unused key combo and it fixed select all.
This question was luckily answered on another thread
I'll post the OG answer here, nonetheless.
Most new comers to VS-Code could resolve this issue with the 2nd method provided by the OG answer:
Goto File > Preferences > Keyboard Shortcuts
in the search bar type this Select All
There's should a couple of results, you'll obviously want the "Select All" result
right click on his line and click on Change When Expression
a textbox would be highlight for you to fill in text. type editorFocus
press enter and done!
The OG answer provides image if you need to confirm that you're doing it right.
side-note: This issue bugged for more than 3 years and is the main reason my I used VS-Community over VS-Code.
So it's nice to finally be able to work normally in this very robust customizable IDE text-editor.
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.