{"id":16149090,"url":"https://github.com/zardoy/vscode-terminal-code-runner","last_synced_at":"2025-04-06T21:36:46.308Z","repository":{"id":103301355,"uuid":"421670356","full_name":"zardoy/vscode-terminal-code-runner","owner":"zardoy","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-12T18:45:03.000Z","size":126,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T03:41:21.779Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=zardoy.terminal-code-runner","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zardoy.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-27T03:59:36.000Z","updated_at":"2023-08-14T22:45:46.000Z","dependencies_parsed_at":"2023-04-09T02:04:09.498Z","dependency_job_id":null,"html_url":"https://github.com/zardoy/vscode-terminal-code-runner","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zardoy%2Fvscode-terminal-code-runner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zardoy%2Fvscode-terminal-code-runner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zardoy%2Fvscode-terminal-code-runner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zardoy%2Fvscode-terminal-code-runner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zardoy","download_url":"https://codeload.github.com/zardoy/vscode-terminal-code-runner/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247557794,"owners_count":20958045,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T00:36:34.307Z","updated_at":"2025-04-06T21:36:46.283Z","avatar_url":"https://github.com/zardoy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terminal Code Runner\n\nThis is extremely simplified and light version of [Code Runner](https://marketplace.visualstudio.com/items?itemName=formulahendry.code-runner) which supports running code only in terminal.\n\nWhy this instead of Code Runner:\n\n- Support use different terminals for each file\n- No [Conflict with Output Colorizer](https://github.com/formulahendry/vscode-code-runner/issues/59)\n- [`preserveFocus` just works](https://github.com/formulahendry/vscode-code-runner/issues/715) - enable `focusOnEditor` setting\n- [`clearPreviousOutput` works on Windows](https://github.com/formulahendry/vscode-code-runner/issues/704) - enable `clearTerminal` setting\n\n## Configuration\n\nNote, this is a completely different version. By default, this extension only support run `javascript` file. You can configure it to support other languages:\n\n```jsonc\n{\n    \"terminalCodeRunner.execMap\": {\n        // default\n        \"javascript\": \"node ${relativeFile}\",\n\n        // support run typescript file\n        // note: you need to install tsx by yourself, like npm install -g tsx\n        \"typescript\": \"tsx ${relativeFile}\"\n    }\n}\n```\n\nYou can also configure the executed command by [globs](https://code.visualstudio.com/api/references/vscode-api#GlobPattern):\n\n```jsonc\n{\n    \"terminalCodeRunner.executorMapByGlob\": {\n        // ${relativeFile} is VSCode variables, will fallback to file absolute path if no workspace opened\n        // check all variables here: https://code.visualstudio.com/docs/editor/variables-reference\n        \"**/*.scpt\": \"osascript ${relativeFile}\"\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzardoy%2Fvscode-terminal-code-runner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzardoy%2Fvscode-terminal-code-runner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzardoy%2Fvscode-terminal-code-runner/lists"}