This opens the workspace README.md in preview mode as soon as VS Code finishes loading. Use it as a starting point when you want users to see project documentation right away.
How It Works
Activates on onStartupFinished.
Searches for README.md variants in the first workspace folder and opens the file.
Executes VS Code commands to show the markdown preview to the side and close other groups for a focused view.
Feel free to tweak src/extension.ts if you need additional behavior (e.g., supporting multiple folders or different file names) and send me a pull request!
Quick Start [only for development]
Install dependencies:
npm install
Compile once (or run the watch task) so VS Code picks up the output:
npm run compile
Press F5 (Run Extension) to launch a new Extension Development Host window. When it opens, the README.md should appear in the markdown preview pane.
CI Publish Workflow
Create a VSCE_PAT secret in the repository containing a Visual Studio Marketplace personal access token.
Trigger the GitHub Actions workflow Publish VS Code Extension manually and provide the version number to publish.
The workflow compiles the project, packages it with vsce, unpublishes the existing version (ignoring failures), and then publishes the new version.
Build & Install Locally
Ensure dependencies are installed and the extension is compiled:
npm install
npm run compile
Install the VS Code Extension Manager if you have not already:
npm install -g @vscode/vsce
Package the extension (generates a .vsix file in the project root):
vsce package
Install the packaged extension in your primary VS Code instance: