Skip to content

Instantly share code, notes, and snippets.

@yamitake
Created June 10, 2025 00:58
Show Gist options
  • Save yamitake/a75b42ec75f32c887ab4e4128201db6a to your computer and use it in GitHub Desktop.
Save yamitake/a75b42ec75f32c887ab4e4128201db6a to your computer and use it in GitHub Desktop.
VS Code Debug Configuration for Zenn Preview This launch.json configuration allows you to easily preview your Zenn articles locally within VS Code. It leverages npx zenn preview to start a local development server and automatically opens the preview in your browser when the server is ready. This streamlines the writing and reviewing process for …
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Zenn Preview",
"runtimeExecutable": "npx",
"runtimeArgs": ["zenn", "preview"],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"serverReadyAction": {
"pattern": "http://localhost:([0-9]+)",
"uriFormat": "http://localhost:%s",
"action": "openExternally"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment