Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>md2wordNew to Visual Studio Code? Get it now.
md2word

md2word

wuwen-scripts

|
18 installs
| (0) | Free
把一个md文件按照指定格式转化为word文件
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

wuwen README

This extension, "wuwen" (md2word), allows you to convert Markdown files to DOCX (Word) format using Pandoc. It provides options for selecting input/output directories and using a reference DOCX file for styling.

Features

  • Converts .md files in a specified directory to .docx files.
  • Allows selection of an input directory containing Markdown files.
  • Allows selection of an output directory for the generated DOCX files.
  • Supports using a reference DOCX file (reference.docx) to control the styling of the output Word documents.
  • Offers a "Default Conversion" mode that uses the current workspace/file directory and a configurable default reference document.
  • Provides progress and error reporting in a dedicated VS Code output channel.

Example:

Tip: Many popular extensions utilize animations. This is an excellent way to show off your extension! We recommend short, focused animations that are easy to follow.

Requirements

  • Pandoc: This extension relies on Pandoc for the Markdown to DOCX conversion. You must have Pandoc installed and accessible in your system's PATH.
    • You can download Pandoc from pandoc.org.

Extension Settings

This extension contributes the following settings:

  • wuwen.defaultReferenceDocPath: Specifies the absolute path to a default reference.docx file to be used during 'Default Conversion' mode. If left empty or null, no reference document will be used by default.
    • Example: "C:\\Users\\YourUser\\Documents\\Templates\\my-reference.docx" or "/Users/YourUser/Documents/Templates/my-reference.docx"

Known Issues

  • No known issues at this time. Please report any issues on the extension's GitHub repository (if available).

Release Notes

Users appreciate release notes as you update your extension.

0.0.1

Initial release of the "wuwen" (md2word) extension.

  • Basic functionality to convert Markdown files to DOCX.
  • Support for input/output directory selection.
  • Support for reference DOCX files.
  • Default and Custom conversion modes.

Working with Markdown

You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:

  • Split the editor (Cmd+\ on macOS or Ctrl+\ on Windows and Linux)
  • Toggle preview (Shift+Cmd+V on macOS or Shift+Ctrl+V on Windows and Linux)
  • Press Ctrl+Space (Windows, Linux, macOS) to see a list of Markdown snippets

For more information

  • Visual Studio Code's Markdown Support
  • Markdown Syntax Reference

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft