Skip to content

Choose and apply a style guide

Pick the right EkLine style guide for your content and apply it consistently across the CLI, CI pipelines, and VS Code.

A style guide tells EkLine which writing standard to enforce. EkLine ships with three built-in style guides and supports a custom standard built from your own rules. This guide helps you choose the right one and apply it consistently everywhere your team reviews documentation.

You need:


EkLine enforces one style guide at a time. Pick the one that matches the content you write most often.

Style guideValueBest for
GooglegoogleDeveloper documentation, API guides, READMEs, and tutorials. Concise and task-focused.
MicrosoftmicrosoftProduct documentation, UI-heavy guides, and enterprise content. Warm and professional.
MarketingmarketingLanding pages, blog posts, and release announcements. Brand-voice and promotional copy.
CustomA standard built from your own rules and terminology. Available in VS Code and through your account’s custom rules.

To see the individual rules each style guide enforces, browse the rules reference.


For the CLI and any pipeline that runs the CLI, set the style guide once in ekline.config.json. Every team member and every pipeline that uses the file then enforces the same standard.

Add the styleGuide field to ekline.config.json in your project root:

ekline.config.json
{
"contentDirectory": ["docs"],
"styleGuide": "google"
}

Run a review to apply it:

Terminal window
ekline-cli --ek-token YOUR_TOKEN

EkLine discovers ekline.config.json by searching from the current directory up the directory tree, so a single file at your repository root applies to the whole project.

CLI arguments take precedence over the config file. Use the --style-guide flag to try a different standard without changing the shared config:

Terminal window
# Uses ekline.config.json, but enforces Microsoft style for this run only
ekline-cli --ek-token YOUR_TOKEN --style-guide microsoft

The VS Code extension has its own Style Guide setting so writers get the same standard while they work.

  1. Open Settings > Extensions > EkLine, or edit .vscode/settings.json directly.

  2. Set the Style Guide to match your config file:

    .vscode/settings.json
    {
    "ekline-vscode.StyleGuide": "Google"
    }
  3. Save. EkLine reviews the active file against the selected style guide.


Run a review against a file that breaks a rule and confirm the rule ID appears.

Terminal window
ekline-cli --ek-token YOUR_TOKEN --content-directory ./docs

Flagged issues include a rule ID in brackets, for example:

[EK00005] Where possible, don't structure sentences in future tense. Use present tense instead.

If the rules that fire match the style guide you chose, the setting is active.


Confirm ekline.config.json is valid JSON and sits in the current directory or a parent directory. A --style-guide flag on the command line overrides the file, so check for a flag in your scripts or pipeline.

VS Code reads its Style Guide setting, not ekline.config.json. Set the same value in both places so local editing and CI enforce one standard.

I want a standard the built-in guides don’t cover

Section titled “I want a standard the built-in guides don’t cover”

Build a custom standard from your own rules and terminology. See the rules reference, then select Custom in VS Code or contact support@ekline.io.