Skip to content

Build task for VSCode #125

@cphyc

Description

@cphyc

Thanks for the amazing tool! I have written a custom task to plug textidote into VS code.
Maybe this would be worth mentionning somewhere on the wiki?

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
         [...],
         {
            "label": "Check LaTeX with textidote (LaTeX+language)",
            "type": "shell",
            // You can change the default language down there
            // The `sed` command is to strip the colours out of the output of textidote, see https://stackoverflow.com/a/18000433
            "command": "textidote --check en_UK --output singleline --no-color ${file}",
            "problemMatcher": {
                "fileLocation": "autoDetect",
                "severity": "warning",
                "pattern": [
                    {
                        "regexp": "^(.*)\\(L([0-9]+)C([0-9]+)-(L([0-9]+)C([0-9]+)|\\?)\\): (.*)$",
                        "file": 1,
                        "line": 2,
                        "column": 3,
                        "endLine": 5,
                        "endColumn": 6,
                        "message": 7
                    }
                ]
            }
        }
    ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions