Home

Disabling Typeahead for VS Code

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.

Disabling Intellisense / Suggestions

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
}

Disabling CodeLens

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
}

Disabling GitLens

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
}

Disabling Copilot

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
}
}

Disable All of the Above

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
}

Let's Connect

Keep Reading

Use a Code Spell Checker

Spell-checking isn't just for documentation.

Mar 01, 2021

VS Code Spell Checker Not Working

Did your squigglies disappear?? Here's the most likely culprit.

Mar 02, 2021

Convert Markdown Image to HTML in VS Code

Make a bulk conversion of markdown images to HTML strings using a regex find and replace with VS Code.

May 03, 2022