[NTG-context] VisualStudioCode on Linux

Mikael Sundqvist mickep at gmail.com
Fri Sep 25 07:50:33 CEST 2020


I got help from the list, and in the end I did the following (I have
ConTeXt installed in $HOME/ConTeXt-lmtx/). I hope it is complete.

ln -s

Then I added a task file (also essentially found here, I think):

%%% Begin of file $HOME/.config/Code/User/tasks.json
 "name" : "context",
 "tasks" : [
        "label": "ConTeXt LuaMetaTeX",
        "type": "shell",
        "command": "export
PATH=$HOME/ConTeXt-lmtx/tex/texmf-linux-64/bin/:$PATH;mtxrun --autogenerate
--script context '${file}'",
        "args": [],
        "options": {
            "cwd": "${fileDirname}"
        "group": {
            "kind": "build",
            "isDefault": true
        "problemMatcher": []
%%% End of file

Then, in the extension setting inside code, I had to enable the color
scheme for context.

Then it works to compile with ctrl+shift+B.


PS I also have some add-on for LaTeX installed, and for that reason I have
started to use the file extension .mkiv for ConTeXt. Then the add-ons don't

On Thu, Sep 24, 2020 at 11:30 PM Willi Egger <context at boede.nl> wrote:

> Hello Linux users!
> Can somebody tell me how to get the extension for ConTeXt to be installed
> for VisualStudioCode?
> Thani you in advance!
> Kind regards
> Willi
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
> maillist : ntg-context at ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20200925/08c4f814/attachment-0001.htm>

More information about the ntg-context mailing list