From c5ab082ed7de081cdcbb32b8d2be3f2601e3d1e9 Mon Sep 17 00:00:00 2001 From: Neonit Date: Mon, 22 Jul 2019 11:49:04 +0200 Subject: [PATCH] Adjust Code Tab Size to 4 in Markdown Preview Sets the tab size to 4 in the Markdown preview for code blocks in Markdown documents. I consider a tab size of 4 being standard and the default of 8 being unbearable. The few people, if any, using a different tab size than 4 can use the custom markdown preview style feature, if it is going to be fixed anytime (https://github.com/microsoft/vscode/issues/77290). [`tab-size` is still marked *experimental* in the MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/tab-size), but it doesn't hurt, if not supported. However, in the used Chromium version it is supported. --- extensions/markdown-language-features/media/markdown.css | 1 + 1 file changed, 1 insertion(+) diff --git a/extensions/markdown-language-features/media/markdown.css b/extensions/markdown-language-features/media/markdown.css index dc12cfca001..273dc40f917 100644 --- a/extensions/markdown-language-features/media/markdown.css +++ b/extensions/markdown-language-features/media/markdown.css @@ -186,6 +186,7 @@ pre.hljs code > div { pre code { color: var(--vscode-editor-foreground); + tab-size: 4; }