Skip to content

Latest commit

 

History

History
48 lines (43 loc) · 1.71 KB

readme.md

File metadata and controls

48 lines (43 loc) · 1.71 KB

INSTRUCTIONS TO CONFIGURE JCSHELL SCRIPTING LANGUAGE ON VISUAL STUDIO CODE

  1. Copy jcsh directory to %USERPROFILE%\.vscode\extensions.

  2. Restart Visual Studio Code.

  3. Configure a new task in your tasks.json file (Terminal>Configure tasks). Don't forget to change the base path for JCShell twice.

    {
        "type": "shell",
        "label": "Run .jcsh script",
        "command": "d:/tools/jcshell/5.17/jcshell.bat",
        "args": [
            "-v",
            "-x",
            "-d",
            "-f",
            "${file}"
        ],
        "group": {
            "kind": "build",
            "isDefault": true
        },
        "presentation": {
            "reveal": "always",
            "focus": false,
            "echo": true,
            "showReuseMessage": false,
            "panel": "new",
            "clear": false,
        },
        "options": {
            // very important: without this scripts won't run as expected ie. won't print apdus
            "cwd": "d:/tools/jcshell/5.17"
        },
        "runOptions": {},
        "problemMatcher": []
    }
    
  4. Open a script .jcsh and run it from Terminal > Run task.

Sources