Skip to content

FileManager.createAndOpenMarkdownFile method

FileManager › createAndOpenMarkdownFile

Unofficial

Creates a new Markdown file in specified location and opens it in a new view.

Signature:

createAndOpenMarkdownFile(path: string, location: PaneType): Promise<void>

Parameters:

ParameterTypeDescription
pathstringPath to the file to create (missing folders will be created).
locationPaneTypeWhere to open the view containing the new file.

Returns: Promise<void>A promise that resolves when the file is created and opened.