Skip to content

Support formating a section of markdown #132

Description

@LokiMidgard

Initial checklist

Problem

VSCode has a format section command this is currently not supported by this extension.

If supported this allows

  • Selecting a part of text and only format that
  • allows editor.formatOnSaveMode with modificationsIfAvailable to only format modified lienes (if I understood correctly)
  • allows formatting while typing (I think this also need to define what characters trigger formating)

Solution

It is said in the vscode extensions docs that the extension need to respond to the textDocument/rangeFormatting request.

Alternatives

For formatOnSave the mode can be set to file, to allow formatting on save, without the benefit of formating only changed text.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions