Ik wil geen woordaanvulling voor Markdown-bestanden in Visual Studio Code, hoe kan ik dit uitschakelen? In het ideale geval alleen voor Markdown, maar in het ergste geval zou zelfs een globale overstap goed zijn.
Antwoord 1, autoriteit 100%
IntelliSense-suggesties in VS Code kunnen wereldwijd of per elke werkruimteen vanaf 1.9 per bestandstype (taal), met behulp van de editor.quickSuggestions
, editor.acceptSuggestionOnEnter
en editor.suggestOnTriggerCharacters
instellingen.
// Controls if quick suggestions should show up or not while typing
"editor.quickSuggestions": true,
Instellingen voor bestandstype(voorkeur, vanaf release 1.9)
Open het Opdrachtenpaletdoor op F1 te drukken kbd>en voer de opdracht Configure language specific settings
uit en selecteer vervolgens Markdown
.
Er wordt een nieuw editorvenster geopend waarin u deze instellingen kunt plaatsen:
// Place your settings in this file to overwrite the default settings
{
"[markdown]": {
"editor.quickSuggestions": false
}
}
Op deze manier schakelt u IntelliSense alleen uit voor markdown-bestanden.
Wereldwijd
Open Opdrachtpaletdoor op F1, typ open user settings
en druk op Enter. Er wordt een nieuw editorvenster geopend waarin u deze instellingen kunt plaatsen:
// Place your settings in this file to overwrite the default settings
{
"editor.quickSuggestions": false
}
Werkruimte
Werkruimte-instellingenmaakt het mogelijk om aangepaste instellingen zonder ze toe te passen op uw andere VS Code-projecten. Het bestand met werkruimte-instellingen bevindt zich onder de map .vscode
in uw project.
Open Opdrachtpaletdoor op F1, typ open workspace settings
en druk op Enter. Er wordt een nieuw editorvenster geopend wanneer u hetzelfde geknipte deel als hierboven vermeld kunt plaatsen.
Ik weet niet of het momenteel mogelijk is om instellingen aan geselecteerde bestandstypes te koppelen.
Andere opties om te configureren
Naast editor.quickSuggestions
kunnen verschillende andere opties worden gewijzigd om de werking van IntelliSense verder aan te passen:
// Controls if quick suggestions should show up while typing
"editor.quickSuggestions": false,
// Controls if suggestions should be accepted with "Enter" - in addition to "Tab". Helps to avoid ambiguity between inserting new lines and accepting suggestions.
"editor.acceptSuggestionOnEnter": false,
// Controls the delay in ms after which quick suggestions will show up.
"editor.quickSuggestionsDelay": 10,
// Enable word based suggestions
"editor.wordBasedSuggestions": false,
// Controls if the editor should automatically close brackets after opening them
"editor.autoClosingBrackets": false,
// Controls if suggestions should automatically show up when typing trigger characters
"editor.suggestOnTriggerCharacters": false
Antwoord 2, autoriteit 9%
Naast wat @JakubS zei, zijn er nog twee instellingen die IntelliSense helpen elimineren:
// Controls if the editor should automatically close brackets after opening them
"editor.autoClosingBrackets": false,
// Controls if suggestions should automatically show up when typing trigger characters
"editor.suggestOnTriggerCharacters": false,
De optie editor.autoClosingBrackets
zorgt ervoor dat Visual Studio Code niet automatisch een haakje, haakje, accolade, enkel aanhalingsteken, dubbel aanhalingsteken, enz. invoegt.
De optie editor.suggestOnTriggerCharacters
zorgt ervoor dat het venster voor automatisch aanvullen niet verschijnt wanneer u een dollarteken of punt typt.
Alles bij elkaar, dit is wat ik gebruik:
// Controls if quick suggestions should show up while typing
"editor.quickSuggestions": false,
// Controls if suggestions should be accepted with "Enter" - in addition to "Tab". Helps to avoid ambiguity between inserting new lines and accepting suggestions.
"editor.acceptSuggestionOnEnter": false,
// Controls the delay in ms after which quick suggestions will show up.
"editor.quickSuggestionsDelay": 10,
// Enable word based suggestions
"editor.wordBasedSuggestions": false,
// Controls if the editor should automatically close brackets after opening them
"editor.autoClosingBrackets": false,
// Controls if suggestions should automatically show up when typing trigger characters
"editor.suggestOnTriggerCharacters": false
Antwoord 3
Als ook de waarschuwingen voor afprijzingen afleiden en u deze tijdelijk wilt uitschakelen, kunt u gebruik maken van;
CTRL/COMMAND+SHIFT+P
Toggle linting by markdownlint on/off (temporarily)
Je kunt het inschakelen als je denkt dat je klaar bent met een document.
Antwoord 4
Dit werkte alleen voor platte tekst, niet voor markdown. Mijn settings.json is zoals hieronder, maar ik krijg nog steeds suggesties in .md-bestanden (hoewel nu niet in .txt-bestanden).
{
"[markdown]": {
"editor.quickSuggestions": false
},
"[plaintext]": {
"editor.quickSuggestions": false
},
[other entries]
}