Skip to content

[Feature request] Make executorMap behave differently for different OS platforms #1287

Description

@diogo-rossi

It would solve many problems if the extension could identify the operating
system platform and run different executors.

Description of what would be a minimal interface:

{
    "code-runner.executorMap.windows": {
        "python": "python",
        "html": "\"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe\"",
        "c": "cd $dir && cl.exe $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt"
    },
    "code-runner.executorMap.linux": {
        "python": "python3",
        "html": "/usr/local/bin/chrome",
        "c": "cd $dir && gcc $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt"
    }
}

Related issues (still open)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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