查找自己VSCode安装Extension的位置
我的是
C:\Users\xxx.vscode\extensions
找到
yzane.markdown-pdf-1.5.0\styles
markdown.css更改pdf文字大小
css
/* https://github.com/microsoft/vscode/blob/master/extensions/markdown-language-features/media/markdown.css */
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
body {
font-family: var(--vscode-markdown-font-family, -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "Ubuntu", "Droid Sans", sans-serif);
// 这里修改字体大小
font-size: var(--vscode-markdown-font-size, 18px);
padding: 0 26px;
line-height: var(--vscode-markdown-line-height, 22px);
word-wrap: break-word;
}
markdown-pdf.css更改pdf文字样式
css
/*
* Markdown PDF CSS
*/
body {
font-family: SimSun, "Times New Roman", serif;
padding: 0 12px;
}
改了之后导出pdf、图片啥的都会生效