# Markdown language settings

> **TL;DR**
> `File | Settings | Languages & Frameworks | Markdown` for Windows and Linux
>
>
>
> `IntelliJ IDEA | Settings | Languages & Frameworks | Markdown` for macOS
>
>
>
> `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS)) ![the Settings icon](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.general.settings.svg)

Use this page to configure [Markdown](markdown.html) support in IntelliJ IDEA.

![Markdown settings](https://resources.jetbrains.com.cn/help/img/idea/2026.2/markdown-settings.png)

Default layout
: Select the default layout for the Markdown file editor: show only the editor, only the preview pane, or both. You can change it using buttons in the top right corner of the editor.

Preview layout
: Select how to split the editor and preview pane: vertically (side by side) or horizontally (preview below the editor).

Preview font size
: Select the font size for the built-in style sheets in the [HTML preview](markdown.html#preview).

Sync scroll in the editor and preview
: Synchronize the scroll position in the editor with the scroll position in the preview pane.

Inject languages in code fences
: Inject the language specified for the code block to enable coding assistance. For more information, refer to [Code blocks](markdown.html#code-blocks).

Show problems in code fences
: Check code blocks for syntax errors according to the specified language.

Group documents with the same name, but different extensions (.md, .html, .docx, .pdf)
: Show MD, HTML, DOCX, and PDF files with the same name as a group in the Project tool window.

Detect commands that can be run right from Markdown files
: Show gutter icons for running commands in Markdown files.
:
:
:
:
:
: For more information, refer to [Run commands from Markdown files](markdown.html#run-commands).

Markdown Extensions
: Install and enable markdown extensions:  Mermaid and PlantUML.

## Custom CSS

Customize the style sheets used for rendering HTML in the preview pane. For more information, refer to [Custom CSS](markdown.html#css).

Load from
: Specify the location of a custom CSS file.

CSS rules
: Enter specific CSS rules that you want to override.

## Pandoc Settings

Configure the settings related to converting files to and from Markdown and other formats. For more information, refer to [Convert Markdown files](markdown.html#convert-markdown-files)

Path to Pandoc executable
: Specify the location of the Pandoc executable.

Save images from Microsoft Word to
: Specify the location where you want to save images imported from DOC files.

## See also

### How tos

[Markdown](markdown.html)

### Reference

[Markdown code style settings](code-style-markdown.html)

### External Links

[Canonical Markdown syntax description](https://daringfireball.net/projects/markdown/syntax) [CommonMark specification](https://commonmark.org/)

