The Goal
Improve readability and editing your mdx files by enabling word wrap on MDX files in Vscode.
The Solution
- Inside
Vscode
. - Press
CMD + Shift + P
to open the command palette. (Ctrl + Shift + P if you're on Windows.) - Search for
Preferences: Open Settings (JSON)
and pressEnter
.
Add the following configuration to your settings.json
file:
{
"[mdx]": {
"editor.wordWrap": "wordWrapColumn",
"editor.quickSuggestions": false,
"editor.wordWrapColumn": 80,
}
}