Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Better Open in Marked2New to Visual Studio Code? Get it now.
Better Open in Marked2

Better Open in Marked2

Viktor Gamov

|
9 installs
| (0) | Free
Open Markdown files in Marked 2 for preview
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Better Open in Marked2

Visual Studio Marketplace Version Visual Studio Marketplace Installs GitHub License: MIT

A VS Code extension that opens Markdown and AsciiDoc files in Marked 2 for preview.

Open in Marked 2

Features

  • Editor title button - One-click access when viewing supported files
  • Keyboard shortcut - Press Cmd+Shift+M to open in Marked 2
  • Context menus - Right-click in editor or file explorer
  • Open folders - Open entire folders in Marked 2 for navigation
  • Status bar indicator - Shows when editing supported files
  • Auto-save - Automatically saves file before opening (configurable)
  • Supports Markdown: .md, .markdown, .mdown, .mkd
  • Supports AsciiDoc: .adoc, .asciidoc (requires Marked 2 custom processor)

Requirements

  • macOS (Marked 2 is macOS-only)
  • Marked 2 installed

Usage

  1. Open a Markdown or AsciiDoc file in VS Code
  2. Use any of these methods:
    • Click the eye icon in the editor title bar
    • Press Cmd+Shift+M
    • Right-click in the editor and select "Open in Marked 2"
    • Right-click a file in the explorer and select "Open in Marked 2"
    • Click "Marked 2" in the status bar
  3. To open a folder: Right-click on any folder in the explorer and select "Open Folder in Marked 2"

Configuration

Setting Description Default
openInMarked2.appPath Path to the Marked 2 application /Applications/Marked 2.app
openInMarked2.autoSave Automatically save file before opening true
openInMarked2.showEditorTitleButton Show button in editor title bar true
openInMarked2.showStatusBar Show status bar indicator true
openInMarked2.showContextMenu Show in editor/file context menus true
openInMarked2.showFolderContextMenu Show "Open Folder" in folder context menu true

Example

If you installed Marked 2 in a custom location:

{
  "openInMarked2.appPath": "/Users/yourname/Applications/Marked 2.app"
}

Development

# Install dependencies
npm install

# Build the extension
npm run build

# Watch for changes
npm run build:watch

# Package for distribution
npm run package

Installation

From VS Code Marketplace

  1. Open VS Code
  2. Go to Extensions (Cmd+Shift+X)
  3. Search for "Better Open in Marked 2"
  4. Click Install

From VSIX

code --install-extension vscode-open-in-marked2-1.0.0.vsix

Publishing

Manual Publishing via GitHub Actions

  1. Go to Actions → Publish Extension
  2. Click Run workflow
  3. Select version bump type (patch, minor, major)
  4. Click Run workflow

The workflow will:

  • Bump the version in package.json
  • Build and publish to VS Code Marketplace
  • Create a GitHub release with the VSIX file

Required Secret

Add VSCE_PAT secret to your repository:

  1. Go to Settings → Secrets and variables → Actions
  2. Add a new secret named VSCE_PAT with your Personal Access Token

License

MIT - see LICENSE for details

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft