Running via Visual Studio Code

To run JythonMusic programs with the Visual Studio Code editor, follow these steps:

1. Download Visual Studio Code here.

2. Open a file to run.

3. Go to Terminal > Configure Tasks.

4. Select create tasks.json file.

5. Select Others.

6. Replace the tasks.json content with the following (update “cwd” with the path of your JythonMusic folder):


{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "label": "JythonMusic",
            "type": "shell",
            "command": "sh jython.sh \"${file}\" ",
            "windows": {
                "command": "jython \"${file}\" "
            },
            "options": {
                "cwd": "/Users/manarisb/Dropbox/jythonMusicDist/"
            },
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "presentation": {
                "reveal": "always",
                "panel": "new"
            },
            "problemMatcher": []
        }
    ]
  }

7. To run the program with the task hit Cmd + Shift + P (Mac) / Ctrl + Shift + P (Windows).

8. Search Run Task.

9. Select JythonMusic.

10. To stop the program, click the terminal window and press Ctrl + C (Mac / Windows).

Note: After the first selection of JythonMusic, you can run the program just with Shift + Cmd + B (Mac) / Shift + Ctrl + B (Windows).