Settings
The settings are available under Markdown OKF-Schema Studio in VS Code settings, in five
categories: Preview, Editing, Frontmatter, Comments and PlantUML. A new workspace starts with the
cream preview theme, the floating toolbar collapsed to its first row and the GFM palette. The
theme and the toolbar state are built-in starting points, not settings; the palette follows
editing.defaultPaletteMode. A choice you make in the preview is remembered per workspace.
Preview
-
preview.maxContentWidth(default 960): width of the text column in pixels;0is full width. The Width button on the third toolbar row switches between Margin (this column), Auto (tables, figures, images and code blocks wider than the column break out, centred, up to the free pane width; narrower tables and figures are centred) and Full width; with the setting at0all three look the same. The choice is remembered per workspace. The TOC button next to it shows or hides a column of h1-h4 headings on the right (off by default, remembered per workspace, hidden on panes narrower than 760 px); click an entry to scroll there, fold sections with the twisty; the current section is highlighted. To fold the sections of the document itself, see Folding Sections. -
preview.stickyHeadingDepth(default 3): heading levels pinned at the top while scrolling (1-6). -
preview.incrementalUpdates(default on): update changed parts in place; off reloads the page. -
preview.rawCopy.balanceEdges(default off, read when a preview opens): a Ctrl/Cmd+C of a text selection copies the Markdown under the selection exactly. On, the copy is also balanced at its edges: it gets back the opening delimiters of the bold, link or code span it starts in, the closing ones of the one it ends in, and the opening or closing lines of the admonition, code block, table, list item or heading it only partly covers. A selection inside one block adds nothing. Example, inHello **world** again: from therofworldto the end of the line, off copiesrld** againand on copies**rld** again; from theoto thelofworldcopiesorleither way. -
preview.showComments(default on): show HTML comments as gray chips; click one (or press Enter or Space on it) to open the comment text in a box under the line. Each chip is labelled “comment”. Off hides every review mark in open previews at once (gray and thread chips, highlighted quotes, badges, the Orphaned comments box) and removes the Comments button. While it is on, the Comments button of the toolbar hides and shows the same review marks in both preview and edit mode (remembered per workspace, shown by default). TODO chips always show. -
preview.showIncomingChanges(default on): mark blocks changed since the last Git commit (unsaved edits included) with a green bar on the left, like the editor gutter. A changed or added front matter field gets its own bar on its row of the properties table; a removed field puts one bar on the whole table (unless a changed or added field already has its own). Needs the built-in Git extension; files that are not in Git, and untrusted workspaces, show nothing. Off turns the marks, and their toolbar toggle, off. It also turns off the side-by-side diff of changed blocks and its toolbar button. -
preview.codeBlocks.darkBackground(default on): draw code blocks on the dark VS Code Dark+ background, with its syntax colors, in every preview theme, cream and white included. Off keeps the light code background of the theme and uses the Light+ colors. Inline code is not affected. Syntax highlighting is the same as the VS Code editor (TextMate grammars) for the common languages (Python, TypeScript, JavaScript, JSON, YAML, shell, C, C++, Rust, Go, Java, SQL, TOML, diff, Markdown, HTML, CSS, XML, INI, Dockerfile, PowerShell and a few more); another language shows as plain text. -
preview.codeBlocks.lineNumbers(default on): number the lines of code blocks of two lines or more. The numbers are never copied, neither by the copy button nor by a selection. A MyST{code-block}with:linenos:or:lineno-start:is numbered whatever this setting says, and:emphasize-lines:highlights the listed lines. -
preview.listItemsInToc(default off): the table of contents also lists the items of top-level lists (not a list inside another item), by their first line cut to about 80 characters, one level below the heading before them. Turn it on for documents that write each requirement, rule or record as a list item, such as MarkSpec specifications, where the requirements have no headings of their own. An item whose first line has no letter or digit is left out; the rail of a narrow pane keeps one tick per heading only. -
preview.scrollPreviewWithEditor(default on): editor scrolling moves the preview; the toolbar anchor button overrides it per panel. -
preview.scrollEditorWithPreview(default on): preview scrolling and clicks reveal the source. -
preview.markEditorSelection(default off): mark the cursor’s source line in the preview.
Editing
-
editing.defaultPaletteMode(defaultgfm): buttons the edition palette shows in a workspace that has not chosen yet:strict(plain Markdown),gfm(strict plus GitHub Flavored Markdown),myst(GFM plus MyST) orfull(MyST plus the commands of Studio’s own extensions: the Vega-Lite and Vega chart commands, see Charts). The select at the start of the palette changes it and the choice is remembered per workspace; it changes the buttons only, never the rendering.
Frontmatter
-
frontmatter.propertiesTable(default on): show the properties table above the preview. -
frontmatter.strictAdditionalProperties(default off): warn on fields the OKF schema omits. -
frontmatter.bundleRootandfrontmatter.projectRoot(default empty): roots forx-okf-linkvalues; relative paths resolve from the first workspace folder. Empty bundle root: the schema folder’s parent if it holds the document and anindex.mdorlog.md; empty project root: the git root inside the workspace; otherwise such links cannot be resolved. -
frontmatter.allowOutsideWorkspaceLinks(default off): resolve document-relative links that leave the workspace.
In Restricted Mode (untrusted workspace) a value set by the workspace for frontmatter.bundleRoot,
frontmatter.projectRoot and frontmatter.allowOutsideWorkspaceLinks is ignored; the defaults
apply. Your user settings still count.
Comments
-
comments.authorName(default empty): the name stored with the review comments you write in the preview. Empty uses your Gituser.name, then your operating system user name. It can be overridden per workspace or per folder (.vscode/settings.json).
PlantUML
-
plantuml.useJar(default off): off, PlantUML diagrams are drawn by the built-in engine, with no Java and no network; on, by Java withplantuml.jarPathor byplantumlfrom PATH (trusted workspaces only). See PlantUML Diagrams. -
plantuml.jarPath(default empty): path toplantuml.jar, relative to the workspace folder; empty usesplantumlfrom PATH. Used only whenplantuml.useJaris on.
Opening Markdown files
There is no setting for it. A Markdown file opens as text, unless you associate *.md with Studio
in workbench.editorAssociations (see Install and Open Studio).
The settings open.searchResultsInStudio and open.markdownFilesInStudio of version 1.11.0 are
gone: the first activation of a later version moves an open.markdownFilesInStudio that is on to the
*.md association, at the same scope, and removes both settings.