Codeblock Autocomplete Screenshot 1

Description

Enables CM6 code block autocomplete to assist with creating fenced code blocks

Additional Information

Links:
Maintainers: bwat47
Version:1.0.1
Minimum app version:3.3
Downloads: This version:8
Last updated:2025-12-07T14:48:26Z

[!note] This plugin was created entirely with AI tools

Codeblock Autocomplete

Provides auto-complete when creating fenced code blocks.

Codemirror 6 only, legacy editor is not supported.

example

Usage

Typing an opening fence (three+ backticks or three+ tildes) will trigger the auto-complete list. Selecting a language will complete the code block (adding the language and closing fence).

  • Specifying a lanauge that's not in the list (and has no matches) will show "No language" and will use the specified language as-is.

  • Supports nested code blocks (enter more than three fence characters will close the block with the same number of fence characters as the opening block).

  • Changing the language of the opening fence of an existing complete code block will not trigger the auto-complete, to prevent addition of an extra closing fence.

Settings

Autocomplete languages - Comma-separated list of language identifiers to show in the autocomplete menu.