Skip to content

EkLine VS Code Integration

Integrate EkLine directly into Visual Studio Code to enforce style guides, receive immediate feedback, and ensure documentation consistency.

Active EkLine account and Integration Token.

Note: Retrieve your token from the EkLine Dashboard by clicking View Integration Token.

The extension works with the following file types:

  • Markdown (.md)
  • MDX (.mdx)
  • HTML (.html)
  • reStructuredText (.rst)
  • Plain text (.txt)
  • AsciiDoc (.adoc)

Choose one of the following methods to install the extension.

Method 1: VSCode Marketplace (Recommended)

  1. Open Visual Studio Code.
  2. Navigate to the Extensions view (Activity Bar).
  3. Search for EkLine.
  4. Click Install.

Method 2: Web Browser

  1. Visit the EkLine Extension Page.
  2. Click Install.

Upon installation, a prompt appears requesting your integration token.

  1. Enter your EkLine Integration Token.
  2. Press Enter to activate.

If you miss the prompt: Open the Command Palette (Cmd/Ctrl + Shift + P) and run EkLine: Configure Extension.

Access configuration via Settings > Extensions > EkLine or by editing your .vscode/settings.json.

SettingDescriptionDefault
EkLine TokenYour unique integration key. You can set it at the User or Workspace level.N/A
Documentation PathsArray of directories to review relative to workspace root. Add paths in VS Code settings UI or as a JSON array in settings.json.["src"]
Style GuideSelect the standard for review (Google, Microsoft, Marketing, or Custom).Google
DisabledToggle to disable the extension without uninstalling it.false
DebugEnable debug mode for troubleshooting.false

EkLine runs automatically on supported files when opened or saved. You can also trigger reviews manually.

Access these via the Command Palette (Cmd/Ctrl + Shift + P).

CommandFunction
EkLine: Review all documentsAnalyzes all files in the configured paths.
EkLine: Review current documentAnalyzes only the active file.
EkLine: Improve writing in current fileTriggers EkLine AI to enhance the active file’s content.
EkLine: Configure ExtensionOpens the token configuration prompt.
ShortcutContextAction
Cmd+Alt+E (Mac) / Ctrl+Alt+E (Windows/Linux)Text selectedOpens Ask EkLine with the selected text
Cmd+Alt+E (Mac) / Ctrl+Alt+E (Windows/Linux)No selection, cursor on empty lineOpens prompt to add content at cursor position

Use the AI assistant to generate content or refactor existing text. Select text and right-click to choose Improve with EkLine AI.

  1. Highlight the text to improve.
  2. Right-click and select Improve with EkLine AI.
  3. Input your instruction and press Enter.
  4. Review the Diff View and accept () or reject () changes.
  1. Place cursor on an empty line.
  2. Right-click and select Improve with EkLine AI.
  3. Enter prompt to generate text at that location.

Reference specific files to give the AI context:

  • In Input Box: Type @ followed by the filename (for example, @utils.ts).
  • In Editor: Type @ekline followed by a prompt directly in the file. Click the appearing CodeLens to execute.

The extension adds an EkLine icon to the Activity Bar (left sidebar). Click it to open the EkLine Suggestions panel, which displays:

  • Real-time linting suggestions for the current file
  • AI assistant interface for quick improvements

When EkLine AI suggests changes, they appear in a side-by-side diff view:

  • Accept (): Click the checkmark button in the editor title bar to apply changes.
  • Reject (): Click the X button to discard changes

The diff view lets you review AI-suggested improvements before applying them to your document.

Common issues and how to resolve them.

EkLine stops reviewing docs when I switch repositories

Section titled “EkLine stops reviewing docs when I switch repositories”

User settings override Workspace settings for Documentation Paths. If you configure paths in your global User settings, those paths apply to all workspaces—ignoring workspace-specific settings.

To use different Documentation Paths per repository:

  1. Open Command Palette (Cmd/Ctrl + Shift + P).
  2. Run Preferences: Open User Settings (JSON).
  3. Remove the ekline-vscode.DocumentationPaths line if present.
  4. Save and close User settings.
  5. Open Command Palette and run Preferences: Open Workspace Settings (JSON).
  6. Add the Documentation Paths for this repository:
    {
    "ekline-vscode.DocumentationPaths": ["docs"]
    }
  7. Repeat steps 5-6 for each repository, using the correct paths for that project.

Note: This precedence behavior applies only to Documentation Paths. Other settings like EkLine Token use workspace-first precedence.

Authentication errors despite entering my token

Section titled “Authentication errors despite entering my token”

The extension reads the token from these sources in order:

  1. Workspace settings (.vscode/settings.json)
  2. User settings (global)
  3. Environment variable (EKLINE_EK_TOKEN)

If you have the token in multiple locations with different values, the extension uses the first one found. To verify which source is active, enable Debug mode in settings and check the Output panel for EkLine logs.