Preview your .qmd file in VSCode, like markdown.
- Live Preview: Open a live preview of your
.qmdfile side by side with the editor. Any changes you make in the editor will be reflected instantly in the preview. - Create New Project: Easily create a new Quarkdown project.
- Compile to HTML: Compile your Quarkdown document to an HTML file.
- Compile to PDF: Compile your Quarkdown document to a PDF file.
You can access these commands from the VS Code Command Palette (Ctrl+Shift+P or Cmd+Shift+P):
Quarkdown: Open Preview to the Side: Opens a preview panel for the current.qmdfile.Quarkdown: Create New Project: Initiates the process to create a new Quarkdown project.Quarkdown: Compile Document to HTML: Compiles the active.qmddocument to an HTML file.Quarkdown: Compile Document to PDF: Compiles the active.qmddocument to a PDF file.
You can configure the following settings in VS Code's settings (File > Preferences > Settings):
quarkdownPreview.quarkdownPath: Specifies the path to the Quarkdown executable. If Quarkdown is in your system's PATH, you can simply usequarkdown. Default isquarkdown.quarkdownPreview.outputDirectory: Sets the compilation output directory. An empty value means using the system's temporary directory. Default is empty.
- Open a
.qmdfile: Open any file with the.qmdextension in VS Code. - Open Preview: Use the command
Quarkdown: Open Preview to the Sidefrom the Command Palette, or click the "Open Preview" icon in the editor's title bar when a.qmdfile is open. - Compile: Use the "Compile Document to HTML" or "Compile Document to PDF" commands to generate output files.
在VS Code中预览您的.qmd文件,就像预览Markdown文件一样。
- 实时预览: 在编辑器旁边打开
.qmd文件的实时预览。您在编辑器中所做的任何更改都将立即反映在预览中。 - 创建新项目: 轻松创建新的Quarkdown项目。
- 编译为HTML: 将您的Quarkdown文档编译为HTML文件。
- 编译为PDF: 将您的Quarkdown文档编译为PDF文件。
您可以通过VS Code命令面板(Ctrl+Shift+P 或 Cmd+Shift+P)访问以下命令:
Quarkdown: Open Preview to the Side: 为当前.qmd文件打开一个预览面板。Quarkdown: Create New Project: 启动创建新Quarkdown项目的过程。Quarkdown: Compile Document to HTML: 将当前活动的.qmd文档编译为HTML文件。Quarkdown: Compile Document to PDF: 将当前活动的.qmd文档编译为PDF文件。
您可以在VS Code的设置中(文件 > 首选项 > 设置)配置以下内容:
quarkdownPreview.quarkdownPath: 指定Quarkdown可执行文件的路径。如果Quarkdown已添加到系统PATH中,则可以直接使用quarkdown。默认为quarkdown。quarkdownPreview.outputDirectory: 设置编译输出目录。空值表示使用系统临时目录。默认为空。
- 打开
.qmd文件: 在VS Code中打开任何以.qmd为扩展名的文件。 - 预览: 从命令面板使用
Quarkdown: Open Preview to the Side命令,或者在打开.qmd文件时点击编辑器标题栏中的"Open Preview to the Side"图标。 - 编译: 使用"Compile Document to HTML"或"Compile Document to PDF"命令生成输出文件。
