Reputation: 337
When I open text files (".txt" plaintext files), in Visual Studio Code, they are syntax highlighted and also vscode starts offering suggestions as I type. How can I turn all this off and just use vscode as a simple editor for these files?
Upvotes: 6
Views: 2054
Reputation: 3864
It's almost 4 years since the accepted answer and VScode has changed. At the time I write this answer I was getting highlighting on square braces when I format the file with plain text.
As per @calamari's answer, if you click on the Plain Text
button on the bottom toolbar (lower right corner), and this time select Configure 'Plain Text' language based settings...
, it will open the relevant section of your settings file.
Here are the settings I have for plain text:
"[plaintext]": {
"editor.unicodeHighlight.ambiguousCharacters": false,
"editor.unicodeHighlight.invisibleCharacters": false,
"editor.guides.highlightActiveBracketPair": false,
"editor.semanticHighlighting.enabled": false,
"editor.matchBrackets": "never",
"editor.bracketPairColorization.enabled": false,
}
It's that last line "editor.bracketPairColorization.enabled": false,
that turns off the highlighting of brackets for me.
Remember to save your settings.json to see the affect of your changes in the editor. Settings don't get applied until you save the file.
Upvotes: 0
Reputation: 337
Here's how to fix it:
C++
):Configure File Association for '.txt'...
:Plain Text
.Upvotes: 7