Overview Version History Q & A Rating & Review
Better Open in Marked2
A VS Code extension that opens Markdown and AsciiDoc files in Marked 2 for preview.
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
Open a Markdown or AsciiDoc file in VS Code
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
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
Open VS Code
Go to Extensions (Cmd+Shift+X)
Search for "Better Open in Marked 2"
Click Install
From VSIX
code --install-extension vscode-open-in-marked2-1.0.0.vsix
Publishing
Manual Publishing via GitHub Actions
Go to Actions → Publish Extension
Click Run workflow
Select version bump type (patch, minor, major)
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:
Go to Settings → Secrets and variables → Actions
Add a new secret named VSCE_PAT with your Personal Access Token
License
MIT - see LICENSE for details