Settings to disabling various methods that provide typeahead functionality in VS Code.
Here are a series of settings that disable various typeahead functionality with VS Code.
VS Code has a built-in code suggestion feature. I love this when I'm writing code, but it's in the way when I'm teaching. These settings disable it.
.vscode/settings.json
{
"editor.quickSuggestions": {
"comments": "off",
"other": "off",
"strings": "off"
},
"editor.suggestOnTriggerCharacters": false,
"editor.parameterHints.enabled": false
}
CodeLens can be used by various extensions to help introspect your code. It's also super useful when writing code, but gets in the way when I'm hovering over items when teaching. (Sometimes I keep this turned one on depending on the subject.)
.vscode/settings.json
{
"editor.codeLens": false
}
GitLens provides some great information about changes to a particular file directly in the code. But it is super distracting when the information is not helpful. This will disable it.
.vscode/settings.json
{
"gitlens.codeLens.recentChange.enabled": false,
"gitlens.codeLens.authors.enabled": false,
"gitlens.codeLens.enabled": false,
"gitlens.currentLine.enabled": false
}
GitHub Copilot (paid) uses AI to suggest code. Although I use it in practice, I find it distracting when recording a coding tutorial. This is the setting to disable it.
.vscode/settings.json
{
"github.copilot.enable": {
"*": false
}
}
Here is all the code above pulled together in one settings snippet.
.vscode/settings.json
{
"editor.quickSuggestions": {
"comments": "off",
"other": "off",
"strings": "off"
},
"editor.suggestOnTriggerCharacters": false,
"editor.parameterHints.enabled": false,
"github.copilot.enable": {
"*": false
},
"editor.codeLens": false,
"gitlens.codeLens.recentChange.enabled": false,
"gitlens.codeLens.authors.enabled": false,
"gitlens.codeLens.enabled": false,
"gitlens.currentLine.enabled": false
}