Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build task for VSCode #125

Closed
cphyc opened this issue Apr 20, 2020 · 5 comments
Closed

Build task for VSCode #125

cphyc opened this issue Apr 20, 2020 · 5 comments

Comments

@cphyc
Copy link

cphyc commented Apr 20, 2020

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
                    }
                ]
            }
        }
    ]
}
@toolcreator
Copy link
Contributor

toolcreator commented Apr 20, 2020

Integrating textidote with vscode was the whole purpose of the singleline output, so it probably doesn't hurt to provide a vscode problem matcher somewhere. The regex is probably also helpful for people using other editors.

@alfureu
Copy link

alfureu commented May 31, 2020

I just discovered your project recently (yesterday), and I am looking around for a documentation, and would love to implement textidote into my LaTeX and Markdown workflows in vscode. Could you please elaborate where do I need to add these commands exactly? I would appreciate it.

@PierreMarchand20
Copy link
Contributor

FYI I discovered this great extension that works for latex and markdown: https://marketplace.visualstudio.com/items?itemName=valentjn.vscode-ltex

It does the job quite well and version 5 does not require any external dependency.

@alfureu
Copy link

alfureu commented May 31, 2020

@PierreMarchand20 thanks, works amazing. Still, I am also interested in textidote integration...

@sylvainhalle
Copy link
Owner

Thanks! I'll put a link to this thread inside the Readme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants