Skip to content

Bring LeadCMS.ai into your editor — edit, preview, and sync AI-powered content right inside VS Code.

License

Notifications You must be signed in to change notification settings

LeadCMS/vscode.plugin.leadcms

Repository files navigation

LeadCMS CMS VSCode Extension

This extension allows developers and content creators to seamlessly work with LeadCMS CMS content directly within VSCode, leveraging Git version control and tools like Copilot for content creation.

Features

  • Pull content from LeadCMS CMS into your local workspace
  • Edit content in convenient .mdx format with full VS Code features
  • Create new content with easy scaffolding
  • Push content back to LeadCMS CMS via its REST API
  • Manage media assets used in your content

Getting Started

Prerequisites

  • Visual Studio Code 1.98.0 or higher
  • An active LeadCMS CMS account with API access
  • Access token for API authentication

Setup

  1. Install the extension from the VS Code marketplace
  2. Open a folder where you want to work with your content
  3. Run the command LeadCMS: Initialize Workspace to set up the folder structure
  4. Run LeadCMS: Authenticate to connect to your LeadCMS instance

Basic Workflow

  1. Pull content: Run LeadCMS: Pull Content to download your existing content
  2. Edit locally: Content is stored as .mdx files for the body and .json files for metadata
  3. Create new content: Use LeadCMS: New Content to scaffold new posts or pages
  4. Push changes: Run LeadCMS: Push Content to upload your changes back to LeadCMS CMS

Commands

Command Description
LeadCMS: Initialize Workspace Sets up the workspace folder structure and configuration
LeadCMS: Authenticate Authenticates with the LeadCMS API
LeadCMS: Pull Content Downloads content from the CMS to local files
LeadCMS: New Content Creates a new content scaffold locally
LeadCMS: Push Content Uploads local content changes back to the CMS

Folder Structure

Requirements

If you have any requirements or dependencies, add a section describing those and how to install and configure them.

Extension Settings

Include if your extension adds any VS Code settings through the contributes.configuration extension point.

For example:

This extension contributes the following settings:

  • myExtension.enable: Enable/disable this extension.
  • myExtension.thing: Set to blah to do something.

Known Issues

Calling out known issues can help limit users opening duplicate issues against your extension.

Release Notes

Users appreciate release notes as you update your extension.

1.0.0

Initial release of ...

1.0.1

Fixed issue #.

1.1.0

Added features X, Y, and Z.


Following extension guidelines

Ensure that you've read through the extensions guidelines and follow the best practices for creating your extension.

Working with Markdown

You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:

  • Split the editor (Cmd+\ on macOS or Ctrl+\ on Windows and Linux).
  • Toggle preview (Shift+Cmd+V on macOS or Shift+Ctrl+V on Windows and Linux).
  • Press Ctrl+Space (Windows, Linux, macOS) to see a list of Markdown snippets.

For more information

Enjoy!

About

Bring LeadCMS.ai into your editor — edit, preview, and sync AI-powered content right inside VS Code.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published