SkyCMS VS Code Extension¶
Summary¶
Use the SkyCMS VS Code extension to connect VS Code to a SkyCMS Editor site, then work with layouts, templates, articles, blogs, and files without leaving your editor.
This extension is central to the SkyCMS "CMS as code" workflow: developers can use familiar IDE practices while still collaborating with content teams who use CKEditor and visual tools.
Outcome¶
After this guide, you can:
- connect to one or more SkyCMS sites,
- sign in with browser-based authentication,
- edit SkyCMS fields and files from VS Code,
- publish and preview key content items,
- recover quickly from common setup and auth errors.
Why this matters for team workflow¶
SkyCMS is designed so teams do not have to choose between developer freedom and editor simplicity.
- Developers can keep working in a code-first environment with standard IDE patterns.
- Non-technical content creators can continue routine page and blog updates through CKEditor with little or no training.
- Both groups work on the same platform and share the same publishing lifecycle.
In most teams, this creates a clean handoff model: developers and site builders shape structure, then content creators maintain day-to-day content confidently.
What this extension does today¶
The extension provides:
- site profile management (add, switch, remove),
- browser sign-in with one-time code exchange,
- a SkyCMS explorer tree (layouts, templates, articles, blogs, files),
- field editing in either document mode or inline input mode,
- article and layout actions (publish, unpublish, set default, duplicate),
- file operations in
/pub(open, upload, create folder, rename/move, delete), - preview launch for supported content nodes,
- an in-chat SkyCMS assistant focused on docs discovery.
Prerequisites¶
Before you start:
- Install Visual Studio Code 1.85 or later.
- Ensure you can reach a running SkyCMS Editor URL.
- Use an account with a role that can edit content.
First-run workflow¶
1. Add a SkyCMS site profile¶
- Open Command Palette.
- Run
SkyCMS: Add Site. - Enter your SkyCMS Editor base URL.
- Optionally enter a friendly site name.
2. Sign in¶
- Open the SkyCMS view in Explorer.
- Select Sign In.
- Complete sign-in in your browser.
- Copy the one-time verification code from SkyCMS.
- Paste the code into the VS Code prompt.
3. Expand the content tree¶
After sign-in, expand SkyCMS categories:
- Layouts
- Page Templates
- Articles (Drafts and Published)
- Blogs
- Files
Editing model¶
SkyCMS fields open in one of two ways:
- Document mode: opens in an editor tab and saves on standard VS Code save.
- Input mode: opens a prompt and saves on Enter.
Common document fields include content/body/head/footer blocks. Common input fields include title/category/date-like values.
When to use VS Code versus browser editors¶
Use the VS Code extension when you need:
- IDE-centric exploration of SkyCMS-managed resources,
- code review and source-control friendly editing sessions,
- rapid developer iteration on templates, layout assets, and technical content fields.
Use browser editors when you need:
- fast non-technical authoring in CKEditor,
- visual page composition in Page Builder,
- editorial workflows where contributors are not expected to use developer tooling.
Most teams use both paths together.
File workflow in VS Code¶
The extension mounts SkyCMS blob storage through a virtual file system rooted at /pub.
For article assets, the extension follows the same dual-path contract as File Manager:
- list views can show friendly article titles,
- operations continue to target canonical paths such as
/pub/articles/{articleNumber}/....
This keeps editing UX readable while preserving stable storage paths and URLs.
Typical workflow:
- Expand Files.
- Open and edit a text file.
- Save in VS Code to persist directly to SkyCMS storage.
- Use context menu commands to upload, create folders, or delete nodes.
Commands quick reference¶
Site and auth commands:
SkyCMS: Add SiteSkyCMS: Switch SiteSkyCMS: Remove SiteSkyCMS: Manage SitesSkyCMS: Sign InSkyCMS: Sign Out
Working commands:
SkyCMS: RefreshSkyCMS: New ArticleSkyCMS: DocumentationSkyCMS: Open in BrowserSkyCMS: Ask SkyCMS
Most publish/preview/file commands are available from right-click context menus in the SkyCMS tree.
Troubleshooting¶
No site configured¶
Run SkyCMS: Add Site, then retry sign-in.
Sign-in browser did not open¶
Allow external URL launch from VS Code, then retry SkyCMS: Sign In.
Tree is empty after sign-in¶
Run SkyCMS: Refresh. If still empty, sign out and sign in again.
Save fails with auth errors¶
Run SkyCMS: Sign Out, then run SkyCMS: Sign In to refresh token state.
Preview command fails for an item¶
Refresh the tree and retry. Some preview actions require server-provided preview IDs.
Current preview limitations¶
- File watching is refresh-oriented. Tree updates are not a full live watch implementation.
- Concurrent edits to the same field or file do not provide conflict-merge UX.
- Chat responses depend on the selected language model availability in VS Code.