问题
I'm developing an extension for VSCode which is supplying completion items but there are word suggestions among them.
I know you can in your User/Workspace settings disable editor.wordBasedSuggestions
but are there a way to this from an extension?
回答1:
Yes, extensions can change the default value of settings by contributing configurationDefaults
in package.json
:
"contributes": {
"configurationDefaults": {
"[lang]": {
"editor.wordBasedSuggestions": false
}
}
}
Where lang
is the ID of the language in question.
来源:https://stackoverflow.com/questions/40550536/disable-wordbasedsuggestions-from-an-extension