Giter Club home page Giter Club logo

vale-vscode's Introduction

Vale + VS Code

The official Visual Studio Code extension for Vale and Vale Server.

The Vale extension for VS Code provides customizable spelling, style, and grammar checking for a variety of markup formats (Markdown, AsciiDoc, reStructuredText, HTML, and DITA).

As of v0.10.0, the extension supports both Vale (the command-line tool) and Vale Server (the desktop application).

Installation

NOTE: While this extension supports both Vale CLI and Vale Server, many of the extension's more advanced features (such as Quick Fixes and Vocabulary Management) are only available through Vale Server.

Using Vale Server

  1. Install Vale Server;

  2. install vale-vscode (this extension) via the Marketplace; and

  3. restart VS Code (recommended).

Using Vale

  1. Install Vale;

  2. install vale-vscode (this extension) via the Marketplace;

  3. set vale.core.useCLI to true in the extension settings (Preferences > Extensions > Vale > Use CLI); and

  4. restart VS Code (recommended).

Features

Detailed Problems View

Browse detailed information for each alert, including the file location, style, and rule ID.

Go-To Rule

Navigate from an in-editor alert to a rule's implementation on your StylesPath by clicking "View Rule".

Quick Fixes (Vale Server only)

Fix misspellings, word usage, capitalization, and more using Quick Fixes (macOS: cmd + ., Windows/Linux: Ctrl + .)

Vocab Management (Vale Server only)

Add words and phrases to your active Vocab through the in-editor context menu.

Jump to your active Vocab files directly from the Command Palette.

Folder Reports (Vale Server only)

Use the Vale: View Folder Report command to generate a report for the active folder.

Settings

The extension offers a number of settings and configuration options (Preferences > Extensions > Vale), which are split into three groups: Vale > Core (Vale and Vale Server), Vale > Server (Vale Server only), and Vale > Vale CLI (Vale only).

  • vale.core.useCLI (default: false): Use Vale CLI instead of Vale Server.

  • vale.server.serverURL (default: http://127.0.0.1:7777): URL to your running Vale Server instance.

  • vale.server.provideFixes (default: true): Offer solutions to alerts using the 'Quick Fix' button.

  • vale.server.lintContext (default: 0): Only lint the active portion of a document (as determined by the cursor position), allowing for efficient on-the-fly linting of large documents. There are three supported values: -1 (applies to all files), 0 (disabled), n (applies to any file with lines >= n).

  • vale.valeCLI.config (default: null): Absolute path to a Vale configuration file. Use the predefined ${workspaceFolder} variable to reference configuration file from a custom location. (NOTE: On Windows you can use '/' and can omit .cmd in the path value.) If not specified, the extension uses the default search process (relative to the current file).

    Example

    {
      // You can use ${workspaceFolder} it will be replaced by workspace folder path
      "vale.valeCLI.config": "${workspaceFolder}/node_modules/some-package/.vale.ini"
    
      // or use some absolute path
      "vale.valeCLI.config": "/some/path/to/.vale.ini"
    }
  • vale.valeCLI.path (default: null): Absolute path to the Vale binary. Use the predefined ${workspaceFolder} variable to reference a non-global binary. (NOTE: On Windows you can use '/' and can omit .cmd in the path value.)

    Example

    {
      // You can use ${workspaceFolder} it will be replaced by workspace folder path
      "vale.valeCLI.path": "${workspaceFolder}/node_modules/.bin/vale"
    
      // or use some absolute path
      "vale.valeCLI.path": "/some/path/to/vale"
    }
  • vale.valeCLI.minAlertLevel (default: inherited): Defines from which level of errors and above to display in the problems output.

vale-vscode's People

Contributors

chrischinchilla avatar dependabot[bot] avatar jdkato avatar jvilk-stripe avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.