EkLine VSCode Integration
EkLine flags any style guide violations in your company's documentation with Visual Studio Code diagnostics. It offers immediate feedback, facilitating consistency in your documentation.
Prerequisites
Section titled “Prerequisites”You need an EkLine integration token to use this extension. Visit the EkLine dashboard and click View Integration Token to obtain one.
Getting started
Section titled “Getting started”Installation
Section titled “Installation”To install the VSCode extension from the web, follow these steps:
- Visit the EkLine Extension Page on VSCode Marketplace.
- Click Install.
- Open Visual Studio Code when prompted.
Alternately, to install the VSCode extension from within VSCode:
- Open Visual Studio Code.
- Click on the Extensions icon in the Activity Bar on the side of the window to access the Extensions view.
- Type “EkLine” in the Extensions view search box.
- Click the “Install” button next to the extension with the same name.
Configure EkLine linter
Section titled “Configure EkLine linter”When you first install the VSCode extension, it invites you to activate with EkLine by entering your integration token.
If you cancel or input an invalid token, the extension displays a popup offering another chance to set up EkLine or turn off for avoiding future popups. Once turned off, execute ‘Configure EkLine Linter’ from the Command Palette or clear the ‘off’ box in Extension Settings.
Configuration Settings
Section titled “Configuration Settings”EkLine provides several configuration options that can be accessed through the Settings panel:
1. Style Guide
Section titled “1. Style Guide”- Choose from available style guides:
- Google (default)
- Marketing
- Microsoft
- Custom
- The selected style guide determines the writing standards applied during document review.
2. Documentation Paths
Section titled “2. Documentation Paths”- Specify which directories to include in documentation review.
- Enter paths relative to your workspace root.
- Multiple paths can be added as a comma-separated list (e.g.,
src,docs,content). - Default path is
src.
3. Token Configuration
Section titled “3. Token Configuration”You must provide your EkLine API token. The token can be configured at the user or workspace level.
To access these settings:
- Click the EkLine icon in the Activity Bar.
- Click the Settings icon in the EkLine panel.
- Or use the Command Palette and select
EkLine: Configure Extension.
Commands and Shortcuts
Section titled “Commands and Shortcuts”EkLine provides several commands that can be accessed through the Command Palette (Cmd/Ctrl + Shift + P):
Document Review Commands
Section titled “Document Review Commands”- EkLine: Review all documents - Analyzes all supported files in your workspace.
- EkLine: Review current document - Analyzes only the currently active file.
- EkLine: Configure Extension - Opens the EkLine extension configuration.
- EkLine: Improve writing in current file - Uses EkLine AI to enhance the writing in the active file.
AI Assistant Commands
Section titled “AI Assistant Commands”- Ask EkLine About Selection (Cmd/Ctrl + Shift + E) - Get AI assistance for selected text.
- Ask EkLine - Opens the AI assistant interface for more complex queries.
Keyboard Shortcuts
Section titled “Keyboard Shortcuts”Cmd/Ctrl + Shift + E- Quick access to Ask EkLine when text is selected.Cmd/Ctrl + Shift + E- Add content at empty line when no text is selected.
Ask EkLine Feature
Section titled “Ask EkLine Feature”The Ask EkLine feature provides AI-powered assistance for your documentation:
Using Ask EkLine
Section titled “Using Ask EkLine”-
With Text Selection:
- Select the text you want to improve.
- An “Ask EkLine” button appears above your selection.
- Click the button or press
Cmd/Ctrl + Shift + Eto open an input box. - Type your request, and press Enter.
- The suggested changes are shown in a diff view. You can then accept or reject them.
-
Without Selection:
- Place your cursor where you want to add content.
- Press
Cmd/Ctrl + Shift + E. - Type your request.
- Press Enter or click the Send button.
Using @ Commands for Context
Section titled “Using @ Commands for Context”You can reference other files for context in two ways:
-
In Input Prompts:
- Type
@followed by a file path (e.g.,@utils.ts). - Click the “Add File Reference” button to browse files.
- Multiple files can be referenced in one prompt.
- Type
-
In Files:
- Type
@eklinefollowed by your prompt. - The extension shows a CodeLens action to run the prompt.
- Type
Advanced Features
Section titled “Advanced Features”- Preview Changes: Changes are shown in a diff view before applying.
- Accept/Reject: Click the ✓ or ✗ icons to accept or reject changes.
- Inline Diff: View and accept/reject specific parts of suggestions.
The extension runs EkLine on supported files when opened or saved.
To analyze all supported files in the workspace, execute ‘Run EkLine Linter’ from the Command Palette.