formulahendry / formulahendry/vscode-code-runner

Custom CodeRunner config settings per file or project

Open
#371 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.4k
Forks
351
PR merge metrics
No merged PRs in 30d

Description

Although is possible to run custom commands, it would really useful if we can define settings per file and per directory/project
i.e. suppose we have inside a dir
```bash
foo.xxx
bar.xxx
```
now consider add two files like that
```bash
foo.coderunner
project.coderunner
```
where *.coderunner files contain some settings like
```json
{
"code-runner.customCommand": "echo Foo Special Settings"
}
```

```json
{
"code-runner.customCommand": "echo Project Special Settings"
}
```

Now if I run foo.xxx , CodeRunner will check if foo.coderunner exists and apply custom settings accordingly.
If I run bar.xxx , the check fails and it could failback checking if project.coderunner there exists.
If neither .codereunner nor project.coderunner exist then defaults settings are applied.

It would be very handy to switch python virtualenv, JDK version, etc,etc or even define peculiar workflows ( like the one requested in #370 )

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.